Our Terraform scripts has been working fine but we are encountering an error with the aws_s3_bucket resource since today:
Error: "region": this field cannot be set
Terraform v0.12.18
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp
terraform apply
Anyone else having this issue, this is due to region no longer being an argument of the s3 bucket resource.
https://github.com/terraform-providers/terraform-provider-aws/blob/master/CHANGELOG.md
@Edwin-Pau - Yup, seems like the last it was allowed as an argument was in Terraform AWS provider version 2.70.0.
There are 2 ways to go about it:
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
Most helpful comment
Anyone else having this issue, this is due to region no longer being an argument of the s3 bucket resource.
https://github.com/terraform-providers/terraform-provider-aws/blob/master/CHANGELOG.md