Skip to content

Commit c073d10

Browse files
authored
Merge pull request #11700 from neinteractiveliterature/cloudfront-forward-all-viewer-headers
Fix cookie_behavior and query_string_behavior values in forward_all policy
2 parents dbf384f + 6737e4f commit c073d10

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

  • .github/workflows
  • terraform/modules/cloudfront_intercode

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,27 @@ jobs:
368368
with:
369369
recreate: true
370370
path: code-coverage-results.md
371+
opentofu-validate:
372+
name: OpenTofu validate (${{ matrix.module }})
373+
runs-on: ubuntu-latest
374+
strategy:
375+
matrix:
376+
module:
377+
- cloudfront_intercode
378+
- forwardemail_receiving
379+
- ses_email_receiving
380+
- intercode_aws_resources
381+
- sentry
382+
steps:
383+
- uses: actions/checkout@v6
384+
- uses: opentofu/setup-opentofu@v1
385+
- name: tofu init
386+
run: tofu init -backend=false
387+
working-directory: terraform/modules/${{ matrix.module }}
388+
- name: tofu validate
389+
run: tofu validate
390+
working-directory: terraform/modules/${{ matrix.module }}
391+
371392
update-release-draft:
372393
runs-on: ubuntu-latest
373394
name: Update release draft

terraform/modules/cloudfront_intercode/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ locals {
2929
resource "aws_cloudfront_origin_request_policy" "forward_all" {
3030
name = "${var.name}-forward-all"
3131

32-
cookies_config { cookie_behavior = "allViewer" }
33-
query_strings_config { query_string_behavior = "allViewer" }
32+
cookies_config { cookie_behavior = "all" }
33+
query_strings_config { query_string_behavior = "all" }
3434
headers_config { header_behavior = "allViewer" }
3535
}
3636

0 commit comments

Comments
 (0)