Skip to content

Commit

Permalink
fix: Amend ecs_target network_configuration to work when no ecs_targe…
Browse files Browse the repository at this point in the history
…t supplied (terraform-aws-modules#25)
  • Loading branch information
JoelClemence authored Sep 21, 2021
1 parent f400a07 commit 852ea30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ resource "aws_cloudwatch_event_target" "this" {
task_definition_arn = lookup(ecs_target.value, "task_definition_arn", null)

dynamic "network_configuration" {
for_each = lookup(each.value.ecs_target, "network_configuration", null) != null ? [
each.value.ecs_target.network_configuration
for_each = lookup(ecs_target.value, "network_configuration", null) != null ? [
ecs_target.value.network_configuration
] : []

content {
Expand Down

0 comments on commit 852ea30

Please sign in to comment.