diff --git a/docs/docs/08-guides/01-terraform-backend.md b/docs/docs/08-guides/01-terraform-backend.md index ddce1837e1c..05d081443be 100644 --- a/docs/docs/08-guides/01-terraform-backend.md +++ b/docs/docs/08-guides/01-terraform-backend.md @@ -43,9 +43,11 @@ aws s3api create-bucket --bucket --region --create-bucket This could be looking like the following when replacing the placeholder `` and `` ```sh -aws s3api create-bucket --bucket my-tfstate-bucket-with-a-uniue-name --region us-east-1 --create-bucket-configuration LocationConstraint=us-east-1 +aws s3api create-bucket --bucket my-tfstate-bucket-with-a-uniue-name --region us-east-2 --create-bucket-configuration LocationConstraint=us-east-2 ``` +(If you are using us-east-1, you must omit the `--create-bucket-configuration` flag since it is the default region.) + ## Step 2: Enable Versioning To take advantage of the S3 backend's versioning capabilities, we must enable versioning on our bucket. Versioning allows us to preserve, retrieve, and restore every version of every object in our bucket. This will be particularly beneficial when dealing with Terraform's state file as it allows us to roll back to a previous state if needed.