Skip to content

Commit e153898

Browse files
authored
fix: Enable run_command_targets support for target (#54)
1 parent 92cbff9 commit e153898

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ resource "aws_cloudwatch_event_target" "this" {
7272
input_path = lookup(each.value, "input_path", null)
7373

7474
dynamic "run_command_targets" {
75-
for_each = lookup(each.value, "run_command_targets", null) != null ? [true] : []
75+
for_each = try([each.value.run_command_targets], [])
7676

7777
content {
7878
key = run_command_targets.value.key

0 commit comments

Comments
 (0)