-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
add origin_request_policy_id & cache_policy_id to caching #17
Conversation
Good day, @antonbabenko! |
This semantic check is not really what we look after when we merge. To make it pass, you can do another commit with the message like: "feat: add origin_request_policy_id & cache_policy_id to caching". PS: Please update the minimum version of AWS provider everywhere to 3.28.0. |
@antonbabenko sure, done. |
Thank you for the PR! v1.6.0 has been just released. |
@alexremn @antonbabenko first of all thanks for implementing the cache_policy_id and the origin_request_policy_id it really helped me to import my CloudFront distribution resources. But I was wondering that if I have cache_policy_id shouldn't the forwarded_values be omitted? default cache behavior config
Terraform stdout
|
This seems like a known issue in Terraform AWS provider - hashicorp/terraform-provider-aws#17626 |
@christiansaiki thank you for this comment. When you would create the CloudFront with cached policy id specified, it would have more weight, then other cache configs and would be prioritized. So, anyway, there possibly would be default values for query_string and cookies . |
Ah alright! Thanks, @antonbabenko @alexremn |
I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
Recently, AWS started to offer to assigned managed policies to caching:
Motivation and Context
This change is considered to be like a step to easier setup of CF.
Breaking Changes
No breaking changes.
How Has This Been Tested?
Tested on creation of the new resource / update of resource created w/o managed policy.
If CDN was created w/o managed policy, it possibly would throw an error in time of apply:
The parameter ForwardedValues cannot be used when a cache policy is associated to the cache behavior.