Skip to content

Commit 852ea30

Browse files
authored
fix: Amend ecs_target network_configuration to work when no ecs_target supplied (terraform-aws-modules#25)
1 parent f400a07 commit 852ea30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
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)