diff --git a/modules/cloudfront/distribution.tf b/modules/cloudfront/distribution.tf index 442ca248..1cbc54b0 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