Add response headers policy input for CloudFront distributions default behaviour @itschrishudson (#76)
what
- Adds an input to pass a response headers policy ID into the CloudFront distribution in the default cache behaviour.
why
- AWS have recently released the ability to generate response header policies to add response headers for CORS/Security and custom use cases instead of setting at the origin or using a Lambda.
- The current module does not allow you to pass in the ID of a policy in order to associate it with a the CloudFront distributions default behaviour.
references
- https://aws.amazon.com/blogs/networking-and-content-delivery/amazon-cloudfront-introduces-response-headers-policies/
- https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_distribution#response_headers_policy_id
- Part of solution to #75
- Implemented in cloudposse/terraform-aws-cloudfront-s3-cdn#195