Search code examples
amazon-cloudfront

Can the Cloudfront Origin Request Policy be specified in Terraform?


Is the Cloudfront origin request policy able to be specified using either Cloudformation or Terraform (ideally Terraform)?

I've seen references for setting it in the console, API or CLI, but no examples using any IaC options.


Solution

  • Yes, there is a Terraform resource for that cloudfront_origin_request_policy