From 38c0531b52f45766af46bbffa8fd1102b6a1521e Mon Sep 17 00:00:00 2001 From: Emanuele Rocca Date: Wed, 20 Apr 2022 10:06:55 +0200 Subject: [PATCH] doc: specify AWS Region via AWS_DEFAULT_REGION If no specific Region is mentioned in RESTIC_REPOSITORY, AWS defaults to us-east-1. For this reason, users that follow the tutorial and create their S3 bucket in any other region get the following error: "Fatal: create repository at [...] client.BucketExists" Explicitly specifying the AWS region name fixes the issue. --- doc/080_examples.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/080_examples.rst b/doc/080_examples.rst index 5c33dfc61..74ce3c0b3 100644 --- a/doc/080_examples.rst +++ b/doc/080_examples.rst @@ -202,11 +202,12 @@ configuration of restic will be placed into environment variables. This will include sensitive information, such as your AWS secret and repository password. Therefore, make sure the next commands **do not** end up in your shell's history file. Adjust the contents of the environment variables to fit your -bucket's name and your user's API credentials. +bucket's name, region, and your user's API credentials. .. code-block:: console $ unset HISTFILE + $ export AWS_DEFAULT_REGION="eu-west-1" $ export RESTIC_REPOSITORY="s3:https://s3.amazonaws.com/restic-demo" $ export AWS_ACCESS_KEY_ID="AKIAJAJSLTZCAZ4SRI5Q" $ export AWS_SECRET_ACCESS_KEY="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"