Skip to content

Commit babb4d6

Browse files
authored
fix: Amend batch_target to be correct value (terraform-aws-modules#35)
1 parent 30bdc1d commit babb4d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ resource "aws_cloudwatch_event_target" "this" {
110110
}
111111

112112
dynamic "batch_target" {
113-
for_each = lookup(each.value, "batch_target", null) != null ? [true] : []
113+
for_each = lookup(each.value, "batch_target", null) != null ? [
114+
each.value.batch_target
115+
] : []
114116

115117
content {
116118
job_definition = batch_target.value.job_definition

0 commit comments

Comments
 (0)