-
Notifications
You must be signed in to change notification settings - Fork 150
/
outputs.tf
173 lines (142 loc) · 5.35 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
# 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, "")
}
# EventBridge Pipes
output "eventbridge_pipe_ids" {
description = "The EventBridge Pipes IDs"
value = { for k, v in aws_pipes_pipe.this : k => v.id }
}
output "eventbridge_pipe_arns" {
description = "The EventBridge Pipes ARNs"
value = { for k, v in aws_pipes_pipe.this : k => v.arn }
}
# IAM Role for EventBridge Pipes
output "eventbridge_pipe_role_arns" {
description = "The ARNs of the IAM role created for EventBridge Pipes"
value = { for k, v in aws_iam_role.eventbridge_pipe : k => v.arn }
}
output "eventbridge_pipe_role_names" {
description = "The names of the IAM role created for EventBridge Pipes"
value = { for k, v in aws_iam_role.eventbridge_pipe : k => v.name }
}
# Resources
output "eventbridge_bus" {
description = "The EventBridge Bus created and their attributes"
value = aws_cloudwatch_event_bus.this
}
output "eventbridge_archives" {
description = "The EventBridge Archives created and their attributes"
value = aws_cloudwatch_event_archive.this
}
output "eventbridge_permissions" {
description = "The EventBridge Permissions created and their attributes"
value = aws_cloudwatch_event_permission.this
}
output "eventbridge_connections" {
description = "The EventBridge Connections created and their attributes"
value = aws_cloudwatch_event_connection.this
sensitive = true
}
output "eventbridge_api_destinations" {
description = "The EventBridge API Destinations created and their attributes"
value = aws_cloudwatch_event_api_destination.this
}
output "eventbridge_targets" {
description = "The EventBridge Targets created and their attributes"
value = aws_cloudwatch_event_target.this
}
output "eventbridge_rules" {
description = "The EventBridge Rules created and their attributes"
value = aws_cloudwatch_event_rule.this
}
output "eventbridge_schedule_groups" {
description = "The EventBridge Schedule Groups created and their attributes"
value = aws_scheduler_schedule_group.this
}
output "eventbridge_schedules" {
description = "The EventBridge Schedules created and their attributes"
value = aws_scheduler_schedule.this
}
output "eventbridge_pipes" {
description = "The EventBridge Pipes created and their attributes"
value = aws_pipes_pipe.this
}
# IAM Roles
output "eventbridge_pipes_iam_roles" {
description = "The EventBridge Pipes IAM roles created and their attributes"
value = aws_iam_role.eventbridge_pipe
}
output "eventbridge_iam_roles" {
description = "The EventBridge IAM roles created and their attributes"
value = aws_iam_role.eventbridge
}