mirror of
https://github.com/sigmasternchen/terraform-aws-eventbridge
synced 2025-03-15 07:58:57 +00:00
44 lines
1.4 KiB
HCL
44 lines
1.4 KiB
HCL
# EventBridge Bus
|
|
output "eventbridge_bus_name" {
|
|
description = "The EventBridge Bus Name"
|
|
value = var.bus_name
|
|
}
|
|
|
|
output "eventbridge_bus_arn" {
|
|
description = "The EventBridge Bus Arn"
|
|
value = element(concat(aws_cloudwatch_event_bus.this.*.arn, [""]), 0)
|
|
}
|
|
|
|
# EventBridge Archive
|
|
output "eventbridge_archive_arns" {
|
|
description = "The EventBridge Archive Arns created"
|
|
value = { for v in aws_cloudwatch_event_archive.this : v.name => v.arn }
|
|
}
|
|
|
|
# EventBridge Permission
|
|
output "eventbridge_permission_ids" {
|
|
description = "The EventBridge Permission Arns created"
|
|
value = { for k, v in aws_cloudwatch_event_permission.this : k => v.id }
|
|
}
|
|
|
|
# EventBridge Rule
|
|
output "eventbridge_rule_ids" {
|
|
description = "The EventBridge Rule IDs created"
|
|
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 = var.create_rules ? { for p in sort(keys(var.rules)) : p => aws_cloudwatch_event_rule.this[p].arn } : {}
|
|
}
|
|
|
|
# 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)
|
|
}
|