Skip to content

Commit 9b49848

Browse files
authored
fix: Add explicit to_map for empty object for aws_cloudwatch_event_target (#24)
1 parent 3796f40 commit 9b49848

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
@@ -48,7 +48,7 @@ resource "aws_cloudwatch_event_rule" "this" {
4848
resource "aws_cloudwatch_event_target" "this" {
4949
for_each = var.create && var.create_targets ? {
5050
for target in local.eventbridge_targets : target.name => target
51-
} : {}
51+
} : to_map({})
5252

5353
event_bus_name = var.create_bus ? aws_cloudwatch_event_bus.this[0].name : var.bus_name
5454

0 commit comments

Comments
 (0)