terraform recently implemented the aws_cloudfront_cache_policy
resource and data source (beginning from aws provider verion 0.3.28
IIRC).
It finally enables Brotli
compression, and this is why I need to use it, but I am unsure about how to integrate it into the existing terraform codebase, also because I am not exactly sure about the relationship between aws_cloudfront_cache_policy
and ordered_cache_behavior
.
- How to use the
aws_cloudfront_cache_policy
- can I just put it inside myaws_cloudfront_distribution
resource? - What is the difference/relation betwwen the cache policy and the
ordered_cache_behavior
?