CloudFront Origin Request Policy
A CloudFront Origin Request Policy defines which HTTP headers, cookies and query-string parameters Amazon CloudFront passes from the edge to your origin and, optionally, includes in the cache key. By attaching a policy to a cache behaviour you can standardise the information that reaches your origin, fine-tune cache efficiency, and limit the exposure of unnecessary request data. Policies are reusable across multiple distributions, making configuration simpler and less error-prone. For further details refer to the AWS documentation.
Terrafrom Mappings:
aws_cloudfront_origin_request_policy.id
Supported Methods​
GET
: Get Origin Request Policy by IDLIST
: List Origin Request PoliciesSEARCH
: Origin Request Policy by ARN