From f3feeb5062c6e5aec0daf99e4b3b6e7cc16c4c52 Mon Sep 17 00:00:00 2001 From: Reen Lokum Date: Mon, 4 Sep 2017 20:47:43 +0200 Subject: [PATCH] Other regions require LocationConstraint When not in the us-east-1 region the LocationConstraint configuration is required for the s3api. --- docs/aws.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/aws.md b/docs/aws.md index 5df539bc36..fa6e422aa9 100644 --- a/docs/aws.md +++ b/docs/aws.md @@ -257,9 +257,13 @@ We recommend keeping the creation of this bucket confined to us-east-1, otherwise more work will be required. ```bash -aws s3api create-bucket --bucket prefix-example-com-state-store --region us-east-1 +aws s3api create-bucket \ + --bucket prefix-example-com-state-store \ + --region us-east-1 ``` +Note: S3 requires `--create-bucket-configuration LocationConstraint=` for regions other than `us-east-1`. + Note: We **STRONGLY** recommend versioning your S3 bucket in case you ever need to revert or recover a previous state store.