We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
create_rules = false
1 parent 906db9f commit 6d8b8d7Copy full SHA for 6d8b8d7
outputs.tf
@@ -24,16 +24,12 @@ output "eventbridge_permission_ids" {
24
# EventBridge Rule
25
output "eventbridge_rule_ids" {
26
description = "The EventBridge Rule IDs created"
27
- value = {
28
- for p in sort(keys(var.rules)) : p => aws_cloudwatch_event_rule.this[p].id
29
- }
+ value = var.create_rules ? { for p in sort(keys(var.rules)) : p => aws_cloudwatch_event_rule.this[p].id } : {}
30
}
31
32
output "eventbridge_rule_arns" {
33
description = "The EventBridge Rule ARNs created"
34
35
- for p in sort(keys(var.rules)) : p => aws_cloudwatch_event_rule.this[p].arn
36
+ value = var.create_rules ? { for p in sort(keys(var.rules)) : p => aws_cloudwatch_event_rule.this[p].arn } : {}
37
38
39
# IAM Role
0 commit comments