aboutsummaryrefslogtreecommitdiff
path: root/script/dev-env-aws.sh
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-10-02 15:13:05 +0300
committerFlorian Klink <flokli@flokli.de>2023-10-02 17:16:11 +0300
commitcb359b4434201b03a3f62b8950d4d6b6f1ab3b36 (patch)
treef71e9f26bff60bce2383aa0a2bf4cd727373c565 /script/dev-env-aws.sh
parent3a0e07404707568dabb13cecaf79e0466c5fc296 (diff)
downloadgarage-cb359b4434201b03a3f62b8950d4d6b6f1ab3b36.tar.gz
garage-cb359b4434201b03a3f62b8950d4d6b6f1ab3b36.zip
doc: update endpoint_url documentation
Since `awscli` `>=1.29.0` or `>=2.13.0` it is now possible to use the `AWS_ENDPOINT_URL` environment variable, or the `endpoint_url` config key to override the endpoint URL. This means, the aws bash function to wrap with --endpoint-url is not necessary anymore. Update invocations to reflect that. https://docs.aws.amazon.com/sdkref/latest/guide/feature-ss-endpoints.html https://github.com/aws/aws-cli/issues/4454#issuecomment-1626116607
Diffstat (limited to 'script/dev-env-aws.sh')
-rw-r--r--script/dev-env-aws.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/dev-env-aws.sh b/script/dev-env-aws.sh
index 9436c2c7..808f9cf1 100644
--- a/script/dev-env-aws.sh
+++ b/script/dev-env-aws.sh
@@ -1,7 +1,7 @@
export AWS_ACCESS_KEY_ID=`cat /tmp/garage.s3 |cut -d' ' -f1`
export AWS_SECRET_ACCESS_KEY=`cat /tmp/garage.s3 |cut -d' ' -f2`
export AWS_DEFAULT_REGION='garage'
-
+# FUTUREWORK: set AWS_ENDPOINT_URL instead, once nixpkgs bumps awscli to >=2.13.0.
function aws { command aws --endpoint-url http://127.0.0.1:3911 $@ ; }
aws --version