You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform CLI and Terraform AWS Provider Version
GitLab Pipeline (image: hashicorp/terraform)
$ terraform init
Initializing the backend...
Successfully configured the backend "s3"! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing provider plugins...
- Checking for available provider plugins...
- Downloading plugin for provider "aws" (hashicorp/aws) 3.0.0...
$ terraform plan -out plan-$ENV.txt
Error: "region": this field cannot be set
on s3.tf line 36, in resource "aws_s3_bucket" "https_bucket":
36: resource "aws_s3_bucket" "https_bucket" {
Expected Behavior
No changes. Infrastructure is up-to-date.
Actual Behavior
Error: "region": this field cannot be set
Steps to Reproduce
# update to latest terraform and aws provider:
terraform init
# run plan against unchanged config
terraform plan
Important Factoids
GitLab pipeline uses the latest hashicorp/terraform image:
Hi @relnetops 👋 Thank you for filing this. Please note this is expected behavior in version 3.0.0 and later of the Terraform AWS Provider. The region of the bucket is determined by the region of the provider, similar to all other resources. Please see the Version 3 Upgrade Guide for more information.
Community Note
Terraform CLI and Terraform AWS Provider Version
GitLab Pipeline (
image: hashicorp/terraform
)Local
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
No changes. Infrastructure is up-to-date.
Actual Behavior
Error: "region": this field cannot be set
Steps to Reproduce
Important Factoids
GitLab pipeline uses the latest
hashicorp/terraform
image:References
The text was updated successfully, but these errors were encountered: