terraform-aws-cloudfront-s3-cdn
terraform-aws-cloudfront-s3-cdn copied to clipboard
Cache and origin request settings
Describe the Feature
Hi, are there plans to support Cache and origin request settings with cache policies (even built-in)
Expected Behavior
Currently, when you create the deployment, it will pick whitelist Use legacy cache settings with whitelist option where there should be a way to make it use Use a cache policy and origin request policy
Use Case
Alternatives Considered
Even if the module can pick build in policies like Managed-CachingOptimized it will be a huge win since custom policies are far more niche and a lot of deployment are more than fine with predefined ones.
Additional Context
it was not supported by terraform for a long time, but according to https://github.com/hashicorp/terraform-provider-aws/issues/14373, it is now.
+1. Currently, there is no way (at least none that I'm aware of) to enable Brotli compression on the CloudFront edge. The cache needs to be switched to a cache policy with Brotli enabled.