-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
BucketRegionError: incorrect region #101
Comments
This is an interesting rabbit hole that I haven't completely figured out. What is failingLooks like it's failing to find the bucket for terraform-aws-cloudfront-s3-cdn/main.tf Lines 185 to 187 in 0818b34
That's odd it's trying to use the terraform-aws-cloudfront-s3-cdn/main.tf Lines 194 to 198 in 0818b34
which should be fed by the terraform-aws-cloudfront-s3-cdn/main.tf Lines 101 to 106 in 0818b34
which is defined by the context terraform-aws-cloudfront-s3-cdn/main.tf Lines 28 to 31 in 0818b34
which is defined here terraform-aws-cloudfront-s3-cdn/context.tf Lines 21 to 29 in 0818b34
I don't understand why WorkaroundYou could provide another Why does var.static_s3_bucket exist ?Current terraform-aws-cloudfront-s3-cdn/variables.tf Lines 264 to 277 in 0818b34
terraform-aws-cloudfront-s3-cdn/main.tf Lines 185 to 187 in 0818b34
and this is pretty confusing terraform-aws-cloudfront-s3-cdn/main.tf Lines 200 to 205 in 0818b34
In human words (probably should be commented in code to some degree)
The terraform-aws-cloudfront-s3-cdn/main.tf Lines 228 to 229 in 0818b34
This was the original PR #17 that added the Going forwardIt looks like perhaps we can set the origin origin {
domain_name = var.origin_bucket ? data.aws_s3_bucket.selected.bucket_regional_domain_name : aws_s3_bucket.origin.bucket_regional_domain_name And then we can change the s3 bucket data source to be the origin bucket data "aws_s3_bucket" "selected" {
count = var.origin_bucket ? 1 : 0
bucket = var.origin_bucket
} which may allow us to remove a lot of old code. |
This issue should be resolved with the latest version. If it does not, please reopen this ticket. |
Describe the Bug
I am getting the following error when using this module:
this error doesn't occur anymore if I delete my
.terraform
folder and theterraform.tfstate
file.Steps to Reproduce
This is the configuration that I'm using:
Additional
Environment:
The text was updated successfully, but these errors were encountered: