-
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 crash on aws_cloudfront_distribution import #14798
Comments
Relevant portion of the crash log:
Looks like the |
The fix for this has been merged and will release with version 3.4.0 of the Terraform AWS Provider, likely out tomorrow. |
Great stuff, thanks! |
This has been released in version 3.4.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! |
Unfortunately it still doesn't work with the latest terraform/provider:
crash.log: https://gist.github.com/peterpakos/9b0a15f84a5e1afb9b1c136288218782
|
ahh thanks for following up on this @peterpakos! Looks like we'll have to add an explicit check for the |
I'm facing the same issue and yes I can confirm it is still not resolved after the update. Please let us know if there is a workaround for now. At the moment I have just removed the code for |
@dShringi Could you please open a new issue for this so that we can track and fix? |
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/eeffe7d7b94a0b0928832d4225e6bcdd
Panic Output
https://gist.github.com/peterpakos/05b9cf9d66195ddcc3c24f48e1da1880
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
.The text was updated successfully, but these errors were encountered: