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
I've set aws provider to eu-west-2 and I'm trying to create a bucket on us-east-1, when I run the plan I get the bucket is going to be created on the right region, but after I apply, it gets created where the provider is configured (eu-west-2) and if I run plan again, terraform wants to change the region to us-east-1
This issue has been automatically migrated to hashicorp/terraform-provider-aws#1656 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to this issue and let us know.
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.
ghost
locked and limited conversation to collaborators
Jul 24, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there,
I've set aws provider to eu-west-2 and I'm trying to create a bucket on us-east-1, when I run the plan I get the bucket is going to be created on the right region, but after I apply, it gets created where the provider is configured (eu-west-2) and if I run plan again, terraform wants to change the region to us-east-1
$ terraform -v
Terraform v0.10.4
region: eu-west-2
Code I'm running:
Plan output:
Terraform will perform the following actions:
id:
acceleration_status:
acl: "private"
arn:
bucket: "someTag-someProject-mycompany-logs"
bucket_domain_name:
force_destroy: "false"
hosted_zone_id:
policy: "{\n "Version": "2012-10-17",\n "Statement": [\n {\n "Effect": "Allow",\n "Principal": {\n "AWS": "arn:aws:iam::107630771604:user/s3-copy"\n },\n "Action": "s3:PutObject",\n "Resource": "arn:aws:s3:::someTag-someProject-somePath/*"\n }\n ]\n}\n"
region: "us-east-1"
request_payer:
tags.%: "3"
tags.Environment: "dev"
tags.Name: "someProject-dev-mycompany-logs"
tags.Project: "someProject"
versioning.#:
website_domain:
website_endpoint:
Apply:
Applying for environment dev
aws_s3_bucket.mycompany_logs: Creating...
acceleration_status: "" => ""
acl: "" => "private"
arn: "" => ""
bucket: "" => "someTag-someProject-dev-mycompany-logs"
bucket_domain_name: "" => ""
force_destroy: "" => "false"
hosted_zone_id: "" => ""
policy: "" => "{\n "Version": "2012-10-17",\n "Statement": [\n {\n "Effect": "Allow",\n "Principal": {\n "AWS": "arn:aws:iam::107630771604:user/s3-copy"\n },\n "Action": "s3:PutObject",\n "Resource": "arn:aws:s3:::someTag-someProject-dev-mycompany-logs/mycompany-logs/*"\n }\n ]\n}\n"
region: "" => "us-east-1"
request_payer: "" => ""
tags.%: "" => "3"
tags.Environment: "" => "dev"
tags.Name: "" => "someProject-dev-mycompany-logs"
tags.Project: "" => "someProject"
versioning.#: "" => ""
website_domain: "" => ""
website_endpoint: "" => ""
aws_s3_bucket.mycompany_logs: Creation complete after 4s (ID: someTag-someProject-dev-mycompany-logs)
Plan after applying:
Terraform will perform the following actions:
~ aws_s3_bucket.mycompany_logs
region: "eu-west-2" => "us-east-1"
Expected Behavior
Create a bucket on us-east-1
Actual Behavior
Created a bucket on us-west-2
Steps to Reproduce
Please list the full steps required to reproduce the issue, for example:
terraform init
terraform plan
terraform apply
terraform plan
Important Factoids
I'm running terraform apply "dev.tfplan" which is the plan I run before applying.
Any idea?
Thanks.
The text was updated successfully, but these errors were encountered: