forked from terraform-aws-modules/terraform-aws-eventbridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
88 lines (73 loc) · 2.75 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# 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 = try(aws_cloudwatch_event_bus.this[0].arn, "")
}
# EventBridge Archive
output "eventbridge_archive_arns" {
description = "The EventBridge Archive ARNs"
value = { for v in aws_cloudwatch_event_archive.this : v.name => v.arn }
}
# EventBridge Permission
output "eventbridge_permission_ids" {
description = "The EventBridge Permission IDs"
value = { for k, v in aws_cloudwatch_event_permission.this : k => v.id }
}
# EventBridge Connection
output "eventbridge_connection_ids" {
description = "The EventBridge Connection IDs"
value = { for k, v in aws_cloudwatch_event_connection.this : k => v.id }
}
output "eventbridge_connection_arns" {
description = "The EventBridge Connection Arns"
value = { for k, v in aws_cloudwatch_event_connection.this : k => v.arn }
}
# EventBridge Destination
output "eventbridge_api_destination_arns" {
description = "The EventBridge API Destination ARNs"
value = { for k, v in aws_cloudwatch_event_api_destination.this : k => v.arn }
}
# EventBridge Rule
output "eventbridge_rule_ids" {
description = "The EventBridge Rule IDs"
value = { for k, v in aws_cloudwatch_event_rule.this : k => v.id }
}
output "eventbridge_rule_arns" {
description = "The EventBridge Rule ARNs"
value = { for k, v in aws_cloudwatch_event_rule.this : k => v.arn }
}
# EventBridge Schedule Groups
output "eventbridge_schedule_group_ids" {
description = "The EventBridge Schedule Group IDs"
value = { for k, v in aws_scheduler_schedule_group.this : k => v.id }
}
output "eventbridge_schedule_group_arns" {
description = "The EventBridge Schedule Group ARNs"
value = { for k, v in aws_scheduler_schedule_group.this : k => v.arn }
}
output "eventbridge_schedule_group_states" {
description = "The EventBridge Schedule Group states"
value = { for k, v in aws_scheduler_schedule_group.this : k => v.state }
}
# EventBridge Schedule
output "eventbridge_schedule_ids" {
description = "The EventBridge Schedule IDs created"
value = { for k, v in aws_scheduler_schedule.this : k => v.id }
}
output "eventbridge_schedule_arns" {
description = "The EventBridge Schedule ARNs created"
value = { for k, v in aws_scheduler_schedule.this : k => v.arn }
}
# IAM Role
output "eventbridge_role_arn" {
description = "The ARN of the IAM role created for EventBridge"
value = try(aws_iam_role.eventbridge[0].arn, "")
}
output "eventbridge_role_name" {
description = "The name of the IAM role created for EventBridge"
value = try(aws_iam_role.eventbridge[0].name, "")
}