From 15012f4bab41b5c4173c49cc68872b1020ba1c9a Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Thu, 30 May 2024 11:51:58 +0100 Subject: [PATCH] Fix dfomain names alb host headers * The host header values accepts a list, rather than individual strings --- ecs-cluster-infrastructure-service-alb.tf | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ecs-cluster-infrastructure-service-alb.tf b/ecs-cluster-infrastructure-service-alb.tf index ef2ca69..50ccf18 100644 --- a/ecs-cluster-infrastructure-service-alb.tf +++ b/ecs-cluster-infrastructure-service-alb.tf @@ -234,11 +234,8 @@ resource "aws_alb_listener_rule" "infrastructure_ecs_cluster_service_host_header } condition { - dynamic "host_header" { - for_each = each.value["domain_names"] - content { - values = host_header.value - } + host_header { + values = each.value["domain_names"] } }