Closed gcallaghan closed 6 years ago
looks like a duplicate of https://github.com/hashicorp/terraform/issues/17637
I had the same problem and I solved inserting lambda inside an ordered_cache_behavior using path pattern *
ordered_cache_behaviour has priority over default behaviour
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version
Terraform Configuration Files
Debug Output
Expected Behavior
Applying a CloudFormation with a Lambda@Edge cach behavior should succeed
Actual Behavior
❤ applying terraform module.uiLambda.data.archive_file.source: Refreshing state...
Error: Error applying plan:
1 error(s) occurred:
Please include the following information in your report:
Also include as much context as you can about your config, state, and the steps you performed to trigger this error.
Terraform does not automatically rollback in the face of errors. Instead, your Terraform state file has been partially updated with any resources that successfully completed. Please address the error above and apply again to incrementally change your infrastructure.
✗ applying terraform - FAIL
Steps to Reproduce