2021-03-22 16:15:02 +00:00
|
|
|
# EventBridge Bus
|
2021-04-08 16:54:37 +00:00
|
|
|
output "eventbridge_bus_name" {
|
2021-03-22 16:15:02 +00:00
|
|
|
description = "The EventBridge Bus Name"
|
|
|
|
value = var.bus_name
|
|
|
|
}
|
|
|
|
|
2021-04-08 16:54:37 +00:00
|
|
|
output "eventbridge_bus_arn" {
|
2021-03-22 16:15:02 +00:00
|
|
|
description = "The EventBridge Bus Arn"
|
|
|
|
value = element(concat(aws_cloudwatch_event_bus.this.*.arn, [""]), 0)
|
|
|
|
}
|
|
|
|
|
|
|
|
# EventBridge Archive
|
2021-04-08 16:54:37 +00:00
|
|
|
output "eventbridge_archive_arns" {
|
2021-03-22 16:15:02 +00:00
|
|
|
description = "The EventBridge Archive Arns created"
|
|
|
|
value = { for v in aws_cloudwatch_event_archive.this : v.name => v.arn }
|
|
|
|
}
|
|
|
|
|
|
|
|
# EventBridge Permission
|
2021-04-08 16:54:37 +00:00
|
|
|
output "eventbridge_permission_ids" {
|
2021-03-22 16:15:02 +00:00
|
|
|
description = "The EventBridge Permission Arns created"
|
|
|
|
value = { for k, v in aws_cloudwatch_event_permission.this : k => v.id }
|
|
|
|
}
|
|
|
|
|
|
|
|
# EventBridge Rule
|
2021-04-08 16:54:37 +00:00
|
|
|
output "eventbridge_rule_ids" {
|
2021-03-22 16:15:02 +00:00
|
|
|
description = "The EventBridge Rule IDs created"
|
2021-08-06 07:33:32 +00:00
|
|
|
value = var.create_rules ? { for p in sort(keys(var.rules)) : p => aws_cloudwatch_event_rule.this[p].id } : {}
|
2021-03-22 16:15:02 +00:00
|
|
|
}
|
|
|
|
|
2021-04-08 16:54:37 +00:00
|
|
|
output "eventbridge_rule_arns" {
|
2021-03-22 16:15:02 +00:00
|
|
|
description = "The EventBridge Rule ARNs created"
|
2021-08-06 07:33:32 +00:00
|
|
|
value = var.create_rules ? { for p in sort(keys(var.rules)) : p => aws_cloudwatch_event_rule.this[p].arn } : {}
|
2021-03-22 16:15:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# IAM Role
|
|
|
|
output "eventbridge_role_arn" {
|
|
|
|
description = "The ARN of the IAM role created for EventBridge"
|
|
|
|
value = element(concat(aws_iam_role.eventbridge.*.arn, [""]), 0)
|
|
|
|
}
|
|
|
|
|
|
|
|
output "eventbridge_role_name" {
|
|
|
|
description = "The name of the IAM role created for EventBridge"
|
|
|
|
value = element(concat(aws_iam_role.eventbridge.*.name, [""]), 0)
|
|
|
|
}
|