Skip to content

Commit c6ea8ba

Browse files
committed
Fixing issue
1 parent 8f596f4 commit c6ea8ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,17 @@ resource "aws_ecs_service" "service" {
6060
dynamic "load_balancer" {
6161
for_each = module.ecs-alb.lb_http_tgs_map_arn_port
6262
content {
63-
target_group_arn = each.key
63+
target_group_arn = load_balancer.key
6464
container_name = var.container_name
65-
container_port = each.value
65+
container_port = load_balancer.value
6666
}
6767
}
6868
dynamic "load_balancer" {
6969
for_each = module.ecs-alb.lb_https_tgs_map_arn_port
7070
content {
71-
target_group_arn = each.key
71+
target_group_arn = load_balancer.key
7272
container_name = var.container_name
73-
container_port = each.value
73+
container_port = load_balancer.value
7474
}
7575
}
7676
network_configuration {

0 commit comments

Comments
 (0)