Skip to content

Commit a65c0f7

Browse files
authored
Fix Terraform code in continuous_integration_continuous_deployment.md (#1182)
There's currently a mismatch between the load balancer listener (port 80) and the container port (8000). Because of this, the task never becomes healthy (since the health checks are directed towards the wrong port).
1 parent 085a9d3 commit a65c0f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/how_to_guides/continuous_integration_continuous_deployment.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ resource "aws_lb_listener" "app_lb_listener" {
639639
resource "aws_lb_target_group" "app_lb" {
640640
name = "${local.deployment_name}-nlb-tg"
641641
protocol = "TCP"
642-
port = 80
642+
port = var.backend_server_port
643643
vpc_id = aws_vpc.backend.id
644644
target_type = "ip"
645645
@@ -650,6 +650,7 @@ resource "aws_lb_target_group" "app_lb" {
650650
timeout = "3"
651651
unhealthy_threshold = "3"
652652
path = "/"
653+
port = var.backend_server_port
653654
}
654655
655656
lifecycle {

0 commit comments

Comments
 (0)