-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathoutputs.tf
More file actions
256 lines (205 loc) · 7.49 KB
/
outputs.tf
File metadata and controls
256 lines (205 loc) · 7.49 KB
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
output "num_nomad_servers" {
description = "Number of Nomad servers in the cluster"
value = module.nomad_servers.cluster_size
}
output "asg_name_nomad_servers" {
description = "Name of Nomad Server Autoscaling group"
value = module.nomad_servers.asg_name
}
output "launch_config_name_nomad_servers" {
description = "Name of Launch Configuration for Nomad servers"
value = module.nomad_servers.launch_config_name
}
output "iam_role_arn_nomad_servers" {
description = "IAM Role ARN for Nomad servers"
value = module.nomad_servers.iam_role_arn
}
output "iam_role_id_nomad_servers" {
description = "IAM Role ID for Nomad servers"
value = module.nomad_servers.iam_role_id
}
output "security_group_id_nomad_servers" {
description = "Security Group ID for Nomad servers"
value = module.nomad_servers.security_group_id
}
output "num_consul_servers" {
description = "Number of Consul servers in cluster"
value = module.consul_servers.cluster_size
}
output "asg_name_consul_servers" {
description = "Name of Consul Server Autoscaling group"
value = module.consul_servers.asg_name
}
output "launch_config_name_consul_servers" {
description = "Name of the Launch Configuration for Consul servers"
value = module.consul_servers.launch_config_name
}
output "iam_role_arn_consul_servers" {
description = "IAM Role ARN for Consul servers"
value = module.consul_servers.iam_role_arn
}
output "iam_role_id_consul_servers" {
description = "IAM Role ID for Consul servers"
value = module.consul_servers.iam_role_id
}
output "security_group_id_consul_servers" {
description = "Security Group ID for Consul servers"
value = module.consul_servers.security_group_id
}
output "node_class_nomad_clients" {
description = "Nomad Client Node Class name applied"
value = module.nomad_clients.client_node_class
}
output "num_nomad_clients" {
description = "The desired number of Nomad clients in cluster"
value = module.nomad_clients.cluster_size
}
output "asg_name_nomad_clients" {
description = "Name of the Autoscaling group for Nomad Clients"
value = module.nomad_clients.asg_name
}
output "launch_config_name_nomad_clients" {
description = "Name of the Launch Configuration for Nomad Clients"
value = module.nomad_clients.launch_config_name
}
output "iam_role_arn_nomad_clients" {
description = "IAM Role ARN for Nomad Clients"
value = module.nomad_clients.iam_role_arn
}
output "iam_role_id_nomad_clients" {
description = "IAM Role ID for Nomad Clients"
value = module.nomad_clients.iam_role_id
}
output "security_group_id_nomad_clients" {
description = "Security Group ID for Nomad Clients"
value = module.nomad_clients.security_group_id
}
output "consul_cluster_tag_key" {
description = "Key that Consul Server Instances are tagged with for discovery"
value = module.consul_servers.cluster_tag_key
}
output "consul_cluster_tag_value" {
description = "Value that Consul Server Instances are tagged with for discovery"
value = module.consul_servers.cluster_tag_value
}
output "nomad_servers_cluster_tag_key" {
description = "Key that Nomad Server Instances are tagged with for discovery"
value = module.nomad_servers.cluster_tag_key
}
output "nomad_servers_cluster_tag_value" {
description = "Value that Nomad servers are tagged with for discovery"
value = module.nomad_servers.cluster_tag_value
}
output "nomad_api_address" {
description = "Address to access nomad API"
value = var.nomad_api_domain
}
output "consul_api_address" {
description = "Address to access consul API"
value = var.consul_api_domain
}
output "vault_api_address" {
description = "Address to access Vault API"
value = var.vault_api_domain
}
output "vault_asg_name" {
description = "Name of the Autoscaling group for Vault cluster"
value = module.vault.asg_name
}
output "vault_cluster_size" {
description = "Number of instances in the Vault cluster"
value = module.vault.cluster_size
}
output "vault_launch_config_name" {
description = "Name of the Launch Configuration for Vault cluster"
value = module.vault.launch_config_name
}
output "vault_iam_role_arn" {
description = "IAM Role ARN for Vault"
value = module.vault.iam_role_arn
}
output "vault_iam_role_id" {
description = "IAM Role ID for Vault"
value = module.vault.iam_role_id
}
output "vault_security_group_id" {
description = "ID of the Security Group for Vault"
value = module.vault.security_group_id
}
output "vault_s3_bucket_arn" {
description = "ARN of the S3 bucket that Vault's state is stored"
value = module.vault.s3_bucket_arn
}
output "vault_servers_cluster_tag_key" {
description = "Key that Vault instances are tagged with"
value = module.vault.cluster_tag_key
}
output "vault_servers_cluster_tag_value" {
description = "Value that Vault instances are tagged with"
value = module.vault.cluster_tag_value
}
output "internal_lb_id" {
description = "ARN of the internal LB that exposes Nomad, Consul and Vault RPC"
value = aws_lb.internal.id
}
output "internal_lb_dns_name" {
description = "DNS name of the internal LB"
value = aws_lb.internal.dns_name
}
output "internal_lb_zone_id" {
description = "The canonical hosted zone ID of the internal load balancer"
value = aws_lb.internal.zone_id
}
output "internal_lb_https_listener_arn" {
description = "ARN of the HTTPS listener for the internal LB"
# Use the `aws_lb_listener_certificate` resource to attach additional certificates
value = aws_lb_listener.internal_https.arn
}
output "internal_lb_security_group_id" {
description = "Security Group ID for the Internal LB"
value = aws_security_group.internal_lb.id
}
output "consul_server_default_user_data" {
description = "Default launch configuration user data for Consul Server"
value = data.template_file.user_data_consul_server.rendered
}
output "consul_server_user_data" {
description = "Default launch configuration user data for Consul Server"
value = local.consul_user_data
}
output "nomad_client_default_user_data" {
description = "Default launch configuration user data for Nomad Client"
value = module.nomad_clients.default_user_data
}
output "nomad_client_user_data" {
description = "User data used by Nomad Client"
value = module.nomad_clients.user_data
}
output "nomad_server_default_user_data" {
description = "Default launch configuration user data for Nomad Server"
value = data.template_file.user_data_nomad_server.rendered
}
output "nomad_server_user_data" {
description = "User data used by Nomad Server"
value = local.nomad_server_user_data
}
output "vault_cluster_default_user_data" {
description = "Default launch configuration user data for Vault Cluster"
value = data.template_file.user_data_vault_cluster.rendered
}
output "vault_cluster_user_data" {
description = "User data used by Vault Cluster"
value = local.vault_user_data
}
output "ssh_key_name" {
description = "The name of the SSH key that all instances are launched with"
value = var.ssh_key_name
}
output "add_private_route53_zone" {
description = "Indicates if there is private zone used for the core setup"
value = var.add_private_route53_zone
}
output "private_zone_id" {
description = "Private zone ID, only applicable when `add_private_route53_zone` is set to true"
value = local.private_zone_id
}