-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_s3_bucket doesn't support region #4310
Comments
Also, my provider is set to use us-east-1 (variable) as it's default region.
|
@failshell for this to work, you would have to do the following:
Then to create a bucket in us-west-2, it would be as follows:
|
Hi @failshell I am going to close this as a duplicate. #6051 was opened and has a little more explanation of what seems to be the issue. We are going to track the issue there Thanks for opening the issue Paul |
@stack72 suggested fix doesn't seems to work with existing buckets. I tried to import a s3 bucket from a different region and then executed `terraform plan which resulted in a bad request error. |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
When creating an S3 bucket manually, it's possible to specify in which region you want the bucket to be in.
Although not in the doc, Terraform seems to accept the region parameter.
Code example:
terraform plan
seems to understandregion
though:So does
terraform apply
:But then, if you run
terraform plan
again, it tries to reconfigure the bucket to the proper region, as it was created in us-east-1 (us standard):Would be great if aws_s3_bucket supported regions.
Note: this is with 0.6.3.
The text was updated successfully, but these errors were encountered: