Skip to content

Commit

Permalink
fix: Fixed function name from to_map to tomap (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-acevedo-ntt authored Oct 26, 2021
1 parent dcbc9eb commit e601dec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ resource "aws_cloudwatch_event_rule" "this" {
resource "aws_cloudwatch_event_target" "this" {
for_each = var.create && var.create_targets ? {
for target in local.eventbridge_targets : target.name => target
} : to_map({})
} : tomap({})

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

Expand Down

0 comments on commit e601dec

Please sign in to comment.