From 28e012dcb4a264632cceb34740e0f025043e5ed1 Mon Sep 17 00:00:00 2001 From: Daniel Milnes Date: Tue, 23 Feb 2021 00:27:24 +0000 Subject: [PATCH] More cleanly handle the wildcard This will still error, but should less so --- modules/ractf/modules/frontend/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ractf/modules/frontend/main.tf b/modules/ractf/modules/frontend/main.tf index dc22e1e..49cb685 100644 --- a/modules/ractf/modules/frontend/main.tf +++ b/modules/ractf/modules/frontend/main.tf @@ -58,8 +58,8 @@ locals { } resource "aws_cloudfront_cache_policy" "cache_policy" { - name = "ractf-${var.deployment_name}-policy" - comment = "Policy for ${var.deployment_name}.${var.root_domain}" + name = "ractf-production-${local.nice_deployment_name}-policy" + comment = "Policy for ${local.nice_deployment_name}.${var.root_domain}" default_ttl = 86400 max_ttl = 604800 min_ttl = 1