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_cloudfront_distribution default_cache_behavior #5390
Comments
Hi @kleinerator 👋 Two questions here:
The |
I've been trying to get this to run in my nonprod environment. I have made manual changes to experiment and adding CloudFront-Viewer-Country was one of those changes. |
Hi @kleinerator 👋 are you still having trouble? We've made some improvements to the |
Closing due to lack of response, but please do reach out if there is still trouble after version 2.1.0. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
Terraform v0.11.7
Affected Resource(s)
aws_cloudfront_distribution default_cache_behavior
Terraform Configuration Files
Debug Output
https://gist.github.com/kleinerator/b6b70bfc2a358258a6127dbf5cd635df
Panic Output
Expected Behavior
It should act like ordered_cache_behavior updates on calculated lambda's will fully qualified arn values.
ordered_cache_behavior.1.lambda_function_association.1549868313.event_type: "origin-request" => ""
ordered_cache_behavior.1.lambda_function_association.1549868313.lambda_arn: "arn:aws:lambda:us-east-1:356379865219:function:station-sites_https_redirect_edge_lambda_qa:2" => ""
ordered_cache_behavior.1.lambda_function_association.~1202208379.event_type: "" => "origin-request"
ordered_cache_behavior.1.lambda_function_association.~1202208379.lambda_arn: "" => "${aws_lambda_function.https-redirect-hosts.qualified_arn}"
Actual Behavior
it tries to replace the entire default cache behavior and fails and then my apply fails even though I'm not trying to change anything.
Steps to Reproduce
Write some terraform that builds an edge lambda and use the qualified arn to add to your default behavior.
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: