mirror of
https://github.com/sigmasternchen/terraform-aws-eventbridge
synced 2025-03-15 07:58:57 +00:00
fix: create_rules = false will not trigger error in output
This commit is contained in:
parent
906db9f7dc
commit
7090438450
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue