From 6b55106845970c683b4a71cafb9210d52b11f76f Mon Sep 17 00:00:00 2001 From: Jake Heath <76011913+jakeyheath@users.noreply.github.com> Date: Thu, 24 Oct 2024 10:02:44 -0700 Subject: [PATCH] fix: only create synthetics if they request it (#3629) --- terraform/modules/happy-stack-eks/synthetics.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/terraform/modules/happy-stack-eks/synthetics.tf b/terraform/modules/happy-stack-eks/synthetics.tf index ef611d304c..43e18052a1 100644 --- a/terraform/modules/happy-stack-eks/synthetics.tf +++ b/terraform/modules/happy-stack-eks/synthetics.tf @@ -10,6 +10,7 @@ locals { # and no synthetics to the internal URLs created for the services. additional_hosts_synthetics = merge([for k, v in local.service_definitions : { for domain in var.additional_hostnames : v.service_name => "https://${domain}${v.health_check_path}" } + if v.synthetics && (v.service_type == "EXTERNAL" || v.service_type == "INTERNAL") ]...)