fix: Fix tomap call for terraform 0.15 (#10)

This commit is contained in:
Timo Reymann 2021-06-04 13:28:59 +02:00 committed by GitHub
parent f7387cdf9f
commit d303324659
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
} : tomap({})
} : {}
event_bus_name = var.create_bus ? aws_cloudwatch_event_bus.this[0].name : "default"