Skip to content

Commit

Permalink
fix: create_rules = false causes error (terraform-aws-modules#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmasternchen authored Aug 13, 2021
1 parent 906db9f commit 6d8b8d7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,12 @@ output "eventbridge_permission_ids" {
# EventBridge Rule
output "eventbridge_rule_ids" {
description = "The EventBridge Rule IDs created"
value = {
for p in sort(keys(var.rules)) : p => aws_cloudwatch_event_rule.this[p].id
}
value = var.create_rules ? { for p in sort(keys(var.rules)) : p => aws_cloudwatch_event_rule.this[p].id } : {}
}

output "eventbridge_rule_arns" {
description = "The EventBridge Rule ARNs created"
value = {
for p in sort(keys(var.rules)) : p => aws_cloudwatch_event_rule.this[p].arn
}
value = var.create_rules ? { for p in sort(keys(var.rules)) : p => aws_cloudwatch_event_rule.this[p].arn } : {}
}

# IAM Role
Expand Down

0 comments on commit 6d8b8d7

Please sign in to comment.