diff options
author | Alex Auvolat <alex@adnab.me> | 2023-10-03 18:40:37 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-10-03 18:40:37 +0200 |
commit | 2e656b541b1dd1492798e1ed764fa40868da4d6a (patch) | |
tree | 66fbf4c11a248d3c92cf44c4d3f18663670acbbe /doc/book/connect/cli.md | |
parent | 9ac1d5be0eba1b3b35f7fb2f99fe8df549044197 (diff) | |
parent | 1243db87f2090a3302c7c8beb386e68ddf9b66b5 (diff) | |
download | garage-0.9.0-rc1.tar.gz garage-0.9.0-rc1.zip |
Merge branch 'main' into nextv0.9.0-rc1
Diffstat (limited to 'doc/book/connect/cli.md')
-rw-r--r-- | doc/book/connect/cli.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/book/connect/cli.md b/doc/book/connect/cli.md index 591ac151..c9ffd4f4 100644 --- a/doc/book/connect/cli.md +++ b/doc/book/connect/cli.md @@ -70,16 +70,17 @@ Then a file named `~/.aws/config` and put: ```toml [default] region=garage +endpoint_url=http://127.0.0.1:3900 ``` Now, supposing Garage is listening on `http://127.0.0.1:3900`, you can list your buckets with: ```bash -aws --endpoint-url http://127.0.0.1:3900 s3 ls +aws s3 ls ``` -Passing the `--endpoint-url` parameter to each command is annoying but AWS developers do not provide a corresponding configuration entry. -As a workaround, you can redefine the aws command by editing the file `~/.bashrc`: +If you're using awscli `<1.29.0` or `<2.13.0`, you need to pass `--endpoint-url` to each CLI invocation explicitly. +As a workaround, you can redefine the aws command by editing the file `~/.bashrc` in this case: ``` function aws { command aws --endpoint-url http://127.0.0.1:3900 $@ ; } |