Other regions require LocationConstraint

When not in the us-east-1 region the LocationConstraint configuration is required for the s3api.
This commit is contained in:
Reen Lokum 2017-09-04 20:47:43 +02:00 committed by Reen Lokum
parent 26e1cb06bf
commit f3feeb5062
1 changed files with 5 additions and 1 deletions

View File

@ -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=<region>` 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.