Skip to content

Commit

Permalink
add additional alb connection
Browse files Browse the repository at this point in the history
  • Loading branch information
zahornyak committed Sep 19, 2023
1 parent 1673ec7 commit 76b5657
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,15 @@ resource "aws_ecs_service" "service" {
}
}

dynamic "load_balancer" {
for_each = { for k, v in var.container_definitions : k => v if try(v.target_group_arn_additional, null) != null }

content {
target_group_arn = load_balancer.value.target_group_arn_additional
container_name = load_balancer.value.container_name
container_port = load_balancer.value.containerPort_additional
}
}

deployment_minimum_healthy_percent = var.deployment_minimum_healthy_percent
deployment_maximum_percent = var.deployment_maximum_percent
Expand Down

0 comments on commit 76b5657

Please sign in to comment.