From 38cf8c760e6f5b9df9fc3ed1e8f067f5468e6115 Mon Sep 17 00:00:00 2001 From: Julia Turc Date: Wed, 4 Dec 2024 16:57:20 -0800 Subject: [PATCH] Fix Terraform code in continuous_integration_continuous_deployment.md 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). --- .../continuous_integration_continuous_deployment.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/how_to_guides/continuous_integration_continuous_deployment.md b/docs/how_to_guides/continuous_integration_continuous_deployment.md index b13623e61..2289e2208 100644 --- a/docs/how_to_guides/continuous_integration_continuous_deployment.md +++ b/docs/how_to_guides/continuous_integration_continuous_deployment.md @@ -639,7 +639,7 @@ resource "aws_lb_listener" "app_lb_listener" { resource "aws_lb_target_group" "app_lb" { name = "${local.deployment_name}-nlb-tg" protocol = "TCP" - port = 80 + port = var.backend_server_port vpc_id = aws_vpc.backend.id target_type = "ip" @@ -650,6 +650,7 @@ resource "aws_lb_target_group" "app_lb" { timeout = "3" unhealthy_threshold = "3" path = "/" + port = var.backend_server_port } lifecycle {