Skip to content

Commit

Permalink
Healthcheck needs target port for s4
Browse files Browse the repository at this point in the history
  • Loading branch information
Vijay Jadhav committed Mar 31, 2022
1 parent 480aed0 commit 381bb7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ resource "aws_lb_target_group" "target_groups" {

health_check {
interval = var.health_check_interval
port = var.listeners[count.index]["target_port"]
protocol = "TCP"
healthy_threshold = var.healthy_threshold
unhealthy_threshold = var.unhealthy_threshold
Expand Down Expand Up @@ -135,4 +136,4 @@ resource "aws_route53_record" "dns" {
zone_id = aws_lb.balancer.zone_id
evaluate_target_health = true
}
}
}

0 comments on commit 381bb7f

Please sign in to comment.