From 4a9023d2635f55f426f7db1f8cce059362a5ce66 Mon Sep 17 00:00:00 2001 From: Julieta Aghamyan Date: Mon, 7 Oct 2024 17:15:04 +0400 Subject: [PATCH] fix(DMVP-5400): Add response header policy --- modules/cloudfront/distribution.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/cloudfront/distribution.tf b/modules/cloudfront/distribution.tf index ca20b887..f0837c7f 100644 --- a/modules/cloudfront/distribution.tf +++ b/modules/cloudfront/distribution.tf @@ -93,6 +93,7 @@ resource "aws_cloudfront_distribution" "main" { compress = var.ordered_compress default_ttl = var.ordered_default_ttl max_ttl = var.ordered_max_ttl + cache_policy_id = var.cache_policy_id dynamic "forwarded_values" { for_each = var.create_response_headers_policy.enabled ? [] : [var.forwarded_values]