File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -203,9 +203,10 @@ resource "aws_cloudfront_distribution" "this" {
203
203
204
204
aliases = var. source_sub_domain != " " ? [" ${ var . source_sub_domain } .${ var . source_zone_name } " ] : [var . source_zone_name ]
205
205
default_cache_behavior {
206
- allowed_methods = [" GET" , " HEAD" ]
207
- cached_methods = [" GET" , " HEAD" ]
208
- target_origin_id = aws_s3_bucket. this . id
206
+ allowed_methods = [" GET" , " HEAD" ]
207
+ cached_methods = [" GET" , " HEAD" ]
208
+ target_origin_id = aws_s3_bucket. this . id
209
+ response_headers_policy_id = var. response_headers_policy_id
209
210
210
211
viewer_protocol_policy = " redirect-to-https"
211
212
cache_policy_id = " 658327ea-f89d-4fab-a63d-7e88639e58f6"
Original file line number Diff line number Diff line change @@ -59,4 +59,10 @@ variable "cloudfront_ipv6" {
59
59
type = bool
60
60
default = true
61
61
description = " Should we configure the cloudfront distribution for IPv6?"
62
- }
62
+ }
63
+
64
+ variable "response_headers_policy_id" {
65
+ type = string
66
+ default = " "
67
+ description = " Should we add a response headers policy to the CloudFront distrobution created by this module?"
68
+ }
You can’t perform that action at this time.
0 commit comments