Skip to content

Commit

Permalink
changed health check details for NLB to TCP 8117
Browse files Browse the repository at this point in the history
  • Loading branch information
chkp-nimrodgab committed Oct 23, 2023
1 parent b34f9de commit 35addba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/aws/modules/common/load_balancer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 35addba

Please sign in to comment.