From 03d8257e6cb4750e2a85edc4fbd2ff04912dba35 Mon Sep 17 00:00:00 2001 From: Tim Holm Date: Mon, 20 Oct 2025 12:01:39 +1100 Subject: [PATCH] fix: ensure default created cache policy is unique to stack. --- cloudfront/module/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudfront/module/main.tf b/cloudfront/module/main.tf index 861d927..fd9ce53 100644 --- a/cloudfront/module/main.tf +++ b/cloudfront/module/main.tf @@ -338,7 +338,7 @@ resource "aws_acm_certificate" "cloudfront_cert" { resource "aws_cloudfront_cache_policy" "default_cache_policy" { count = var.default_cache_policy_id == null ? 1 : 0 - name = "SugaDefaultCachePolicy" + name = "SugaDefaultCachePolicy-${var.suga.stack_id}" comment = "Default cache policy for CloudFront distribution for Suga Applications" # Set TTL defaults to respect cache control headers