-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Terraform 0.13.1 crash on aws_cloudfront_distribution import #14986
Comments
Thank you so much for reporting this, @peterpakos! This may be due to changes related to the CloudFront Cache Key and Origin Request Policies since the forwarded values within the cache behaviors can now be controlled with separate CloudFront components and those simply referenced in the cache behavior. Terraform AWS Provider support for that new functionality can be tracked in #14373. This should be fixed by #14993, which will be merged shortly and released tomorrow with version 3.5.0 of the Terraform AWS Provider. 👍 |
This has been released in version 3.5.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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 CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/peterpakos/83d322403fa4d9fb421f5e53392f32a3
Panic Output
https://gist.github.com/peterpakos/9b0a15f84a5e1afb9b1c136288218782
Expected Behavior
Terraform import command successful with Cloudfront Distribution successfully imported to the state file.
Actual Behavior
Terraform import command crashed.
Steps to Reproduce
terraform import module.s3-cdn.aws_cloudfront_distribution.default E32EAQRW369ZYR
Important Factoids
Cloudfront Distribution E32EAQRW369ZYR contains 2 Origins:
It also has 2 Behaviours configured:
ui/*
for S3 Origin.The latter Behaviour also has Lambda@Edge Function associated with
Viewer Request
.References
The text was updated successfully, but these errors were encountered: