Skip to content

Commit f4d5b00

Browse files
authored
Amend ecs target foreach
1 parent f400a07 commit f4d5b00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ resource "aws_cloudwatch_event_target" "this" {
8282
task_definition_arn = lookup(ecs_target.value, "task_definition_arn", null)
8383

8484
dynamic "network_configuration" {
85-
for_each = lookup(each.value.ecs_target, "network_configuration", null) != null ? [
86-
each.value.ecs_target.network_configuration
85+
for_each = lookup(ecs_target.value, "network_configuration", null) != null ? [
86+
ecs_target.value.network_configuration
8787
] : []
8888

8989
content {

0 commit comments

Comments
 (0)