Skip to content

Commit

Permalink
fix: Amend batch_target to be correct value (terraform-aws-modules#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelClemence authored Jan 6, 2022
1 parent 30bdc1d commit babb4d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ resource "aws_cloudwatch_event_target" "this" {
}

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

content {
job_definition = batch_target.value.job_definition
Expand Down

0 comments on commit babb4d6

Please sign in to comment.