mirror of
https://github.com/sigmasternchen/terraform-aws-eventbridge
synced 2025-03-15 07:58:57 +00:00
fix: Fix tomap call for terraform 0.15 (#10)
This commit is contained in:
parent
f7387cdf9f
commit
d303324659
1 changed files with 1 additions and 1 deletions
2
main.tf
2
main.tf
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue