File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,15 @@ resource "aws_cloudfront_distribution" "wfnews_distribution" {
277277 target_origin_id = " wfnews_nginx_${ var . target_env } "
278278 compress = true
279279 viewer_protocol_policy = " redirect-to-https"
280- cache_policy_id = " 658327ea-f89d-4fab-a63d-7e88639e58f6"
280+
281+ forwarded_values {
282+ query_string = true
283+ headers = [" Origin" ]
284+
285+ cookies {
286+ forward = " none"
287+ }
288+ }
281289
282290 response_headers_policy_id = aws_cloudfront_response_headers_policy. cache_control_response_headers . id
283291
@@ -857,7 +865,15 @@ resource "aws_cloudfront_distribution" "wfnews_geofencing_gov_client" {
857865 target_origin_id = " wfnews_gov_${ var . target_env } "
858866 compress = true
859867 viewer_protocol_policy = " redirect-to-https"
860- cache_policy_id = " 658327ea-f89d-4fab-a63d-7e88639e58f6"
868+
869+ forwarded_values {
870+ query_string = true
871+ headers = [" Origin" ]
872+
873+ cookies {
874+ forward = " none"
875+ }
876+ }
861877 }
862878
863879 ordered_cache_behavior {
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ resource "aws_iam_role_policy" "wfnews_ssp_bucket_policy" {
115115 "s3:PutObject",
116116 "s3:GetObject",
117117 "s3:DeleteObject",
118+ "s3:ListBucket",
118119 "kms:Decrypt",
119120 "kms:Encrypt",
120121 "s3:PutBucketCORS"
@@ -148,6 +149,7 @@ resource "aws_iam_role_policy" "wfnews_task_execution_bucket_policy" {
148149 "s3:PutObject",
149150 "s3:GetObject",
150151 "s3:DeleteObject",
152+ "s3:ListBucket",
151153 "kms:Decrypt",
152154 "kms:Encrypt",
153155 "s3:PutBucketCORS"
You can’t perform that action at this time.
0 commit comments