We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Terraform v0.11.10
When applying the following:
module "cdn" { source = "git::https://github.com/cloudposse/terraform-aws-cloudfront-s3-cdn.git?ref=master" namespace = "eg" stage = "prod" name = "app" aliases = ["xxx] parent_zone_name = "xxxxx" }
I am getting this error:
Error: Error refreshing state: 1 error(s) occurred: * module.cdn.data.aws_s3_bucket.selected: 1 error(s) occurred: * module.cdn.data.aws_s3_bucket.selected: data.aws_s3_bucket.selected: Failed getting S3 bucket: NotFound: Not Found status code: 404, request id: ED5F22C4A1F1270A, host id: lMLXsPMkwT9+QJ/80X2OeL92PlFeC33QjNdCjNYjez3cP1Km/7A6nBEFeHl59dmdNTMuKDTJQTE= Bucket: "eg-prod-app-origin"
At https://github.com/cloudposse/terraform-aws-cloudfront-s3-cdn/blob/f6420b3e81a4c4c2480d6ef429c8651983a57061/main.tf#L100 aws_s3_bucket.origin.*.bucket is used to get the bucket_name, however this will also be evaluated when aws_s3_bucket.origin has not been created yet. That will cause "aws_s3_bucket.selected" to use a bucketname which has not been created yet.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Terraform v0.11.10
When applying the following:
I am getting this error:
At https://github.com/cloudposse/terraform-aws-cloudfront-s3-cdn/blob/f6420b3e81a4c4c2480d6ef429c8651983a57061/main.tf#L100 aws_s3_bucket.origin.*.bucket is used to get the bucket_name, however this will also be evaluated when aws_s3_bucket.origin has not been created yet. That will cause "aws_s3_bucket.selected" to use a bucketname which has not been created yet.
The text was updated successfully, but these errors were encountered: