From f08dd4bfbd3e7f7d095c884ddef5e5ee6a50203e Mon Sep 17 00:00:00 2001 From: Julieta Aghamyan Date: Mon, 7 Oct 2024 17:47:47 +0400 Subject: [PATCH] fix(DMVP-5400): Add response header policy --- modules/cloudfront/distribution.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cloudfront/distribution.tf b/modules/cloudfront/distribution.tf index 1cbc54b0..4ea5d8b4 100644 --- a/modules/cloudfront/distribution.tf +++ b/modules/cloudfront/distribution.tf @@ -45,7 +45,7 @@ resource "aws_cloudfront_distribution" "main" { cache_policy_id = var.cache_policy_id dynamic "forwarded_values" { - for_each = var.cache_policy_id == "" ? [] : [var.forwarded_values] + for_each = var.cache_policy_id == "" ? [var.forwarded_values] : [] content { query_string = forwarded_values.value.query_string @@ -96,7 +96,7 @@ resource "aws_cloudfront_distribution" "main" { cache_policy_id = var.cache_policy_id dynamic "forwarded_values" { - for_each = var.cache_policy_id == "" ? [] : [var.forwarded_values] + for_each = var.cache_policy_id == "" ? [var.forwarded_values] : [] content { query_string = forwarded_values.value.query_string