aboutsummaryrefslogtreecommitdiff
path: root/doc/book/connect/cli.md
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2023-10-02 14:30:53 +0000
committerAlex <alex@adnab.me>2023-10-02 14:30:53 +0000
commit16aa418e473a5e9ef229060d20f6eb280df272a2 (patch)
treef71e9f26bff60bce2383aa0a2bf4cd727373c565 /doc/book/connect/cli.md
parent3a0e07404707568dabb13cecaf79e0466c5fc296 (diff)
parentcb359b4434201b03a3f62b8950d4d6b6f1ab3b36 (diff)
downloadgarage-16aa418e473a5e9ef229060d20f6eb280df272a2.tar.gz
garage-16aa418e473a5e9ef229060d20f6eb280df272a2.zip
Merge pull request 'doc: update endpoint_url documentation' (#641) from flokli/garage:aws-endpoint-url into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/641
Diffstat (limited to 'doc/book/connect/cli.md')
-rw-r--r--doc/book/connect/cli.md7
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 $@ ; }