From aaf5c2c199f1cbcb3aaf12ce606b814ba1bc917e Mon Sep 17 00:00:00 2001 From: Umang Mistry Date: Wed, 22 May 2024 14:02:38 -0500 Subject: [PATCH] Adding port number on ELB health check --- streamlit-server/alb.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/streamlit-server/alb.tf b/streamlit-server/alb.tf index 8b7355a..a94a31c 100644 --- a/streamlit-server/alb.tf +++ b/streamlit-server/alb.tf @@ -25,6 +25,7 @@ resource "aws_lb_target_group" "app_tg_8500" { healthy_threshold = 5 unhealthy_threshold = 2 matcher = "200" + port = 8500 } } @@ -41,6 +42,7 @@ resource "aws_lb_target_group" "app_tg_8501" { healthy_threshold = 5 unhealthy_threshold = 2 matcher = "200" + port = 8501 } } @@ -57,6 +59,7 @@ resource "aws_lb_target_group" "app_tg_8502" { healthy_threshold = 5 unhealthy_threshold = 2 matcher = "200" + port = 8502 } } @@ -73,6 +76,7 @@ resource "aws_lb_target_group" "app_tg_8503" { healthy_threshold = 5 unhealthy_threshold = 2 matcher = "200" + port = 8503 } }