diff --git a/create-an-aws-ecs-byoc-app/components/ecs-service/alb.tf b/create-an-aws-ecs-byoc-app/components/ecs-service/alb.tf index 82dcf27..e0aa4f7 100644 --- a/create-an-aws-ecs-byoc-app/components/ecs-service/alb.tf +++ b/create-an-aws-ecs-byoc-app/components/ecs-service/alb.tf @@ -54,7 +54,7 @@ module "ingress" { api = { name_prefix = "api-" protocol = "HTTP" - port = 5000 + port = 8080 target_type = "ip" create_attachment = false health_check = { diff --git a/create-an-aws-ecs-byoc-app/components/ecs-service/service.tf b/create-an-aws-ecs-byoc-app/components/ecs-service/service.tf index c0567ff..e75e137 100644 --- a/create-an-aws-ecs-byoc-app/components/ecs-service/service.tf +++ b/create-an-aws-ecs-byoc-app/components/ecs-service/service.tf @@ -16,8 +16,8 @@ module "service" { port_mappings = [ { name = "http" - containerPort = 5000 - hostPort = 5000 + containerPort = 8080 + hostPort = 8080 protocol = "http" } ] @@ -43,7 +43,7 @@ module "service" { service = { target_group_arn = module.ingress.target_groups["api"].arn container_name = "api" - container_port = 5000 + container_port = 8080 } }