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
aws_s3_bucket.example-bucket is a resource in the aws.us-east-1 provider but terraform takes that as the default region resource (In this case ap-northeast-1) in aws_s3_bucket_versioning.example-bucket_versioning and occurs following error.
Error: error waiting for S3 Bucket Versioning status for bucket (example-bucket): BucketRegionError: incorrect region, the bucket is not in 'ap-northeast-1' region at endpoint ''
status code: 301, request id: , host id:
The text was updated successfully, but these errors were encountered:
Terraform can override the default provider with the provider attribute in the resource block.
e.g.
In the above, tfrefactor will migrate from the
versioning
attribute to theaws_s3_bucket_versioning
resource but the provider attribute is ignored.aws_s3_bucket.example-bucket
is a resource in theaws.us-east-1
provider but terraform takes that as the default region resource (In this caseap-northeast-1
) inaws_s3_bucket_versioning.example-bucket_versioning
and occurs following error.The text was updated successfully, but these errors were encountered: