From 35addba21575aed30f62ae4eb4e9f6647c3d877b Mon Sep 17 00:00:00 2001 From: nimrodgab Date: Mon, 9 Oct 2023 10:46:09 +0300 Subject: [PATCH] changed health check details for NLB to TCP 8117 --- terraform/aws/modules/common/load_balancer/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/aws/modules/common/load_balancer/main.tf b/terraform/aws/modules/common/load_balancer/main.tf index 0d51efc9..3a9d8a6b 100755 --- a/terraform/aws/modules/common/load_balancer/main.tf +++ b/terraform/aws/modules/common/load_balancer/main.tf @@ -19,8 +19,8 @@ resource "aws_lb_target_group" "lb_target_group" { protocol = var.load_balancer_protocol port = var.target_group_port health_check { - port = var.load_balancers_type != "gateway" ? null : 8117 - protocol = var.load_balancers_type != "gateway" ? null : "TCP" + port = var.load_balancers_type != "gateway" && var.load_balancers_type != "Network Load Balancer" ? null : 8117 + protocol = var.load_balancers_type != "gateway" && var.load_balancers_type != "Network Load Balancer" ? null : "TCP" } } resource "aws_lb_listener" "lb_listener" {