generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
330 lines (270 loc) · 10.4 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
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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
# ------------------------------------------------------------------------------
# Outputs
# ------------------------------------------------------------------------------
# ---------------------------------VPC------------------------------------------
output "vpc_id" {
value = module.vpc.vpc_id
description = "The ID of the VPC."
}
output "vpc_arn" {
value = module.vpc.vpc_arn
description = "The ARN of the VPC"
}
output "vpc_cidr_block" {
value = module.vpc.vpc_cidr_block
description = "The CIDR block of the VPC."
}
output "ipv6_cidr_block" {
value = module.vpc.ipv6_cidr_block
description = "The IPv6 CIDR block."
}
output "vpc_ipv6_association_id" {
value = module.vpc.vpc_ipv6_association_id
description = "The association ID for the IPv6 CIDR block."
}
output "ipv6_cidr_block_network_border_group" {
value = module.vpc.ipv6_cidr_block_network_border_group
description = "The IPv6 Network Border Group Zone name"
}
output "vpc_main_route_table_id" {
value = module.vpc.vpc_main_route_table_id
description = "The ID of the main route table associated with this VPC."
}
output "vpc_default_network_acl_id" {
value = module.vpc.vpc_default_network_acl_id
description = "The ID of the network ACL created by default on VPC creation."
}
output "vpc_default_security_group_id" {
value = module.vpc.vpc_default_security_group_id
description = "The ID of the security group created by default on VPC creation."
}
output "vpc_default_route_table_id" {
value = module.vpc.vpc_default_route_table_id
description = "The ID of the route table created by default on VPC creation."
}
output "igw_id" {
value = module.vpc.igw_id
description = "The ID of the Internet Gateway."
}
output "ipv6_egress_only_igw_id" {
value = module.vpc.ipv6_egress_only_igw_id
description = "The ID of the egress-only Internet Gateway"
}
output "arn" {
value = module.vpc.arn
description = "Amazon Resource Name (ARN) of VPC"
}
# ---------------------------------SUBNET---------------------------------------
output "public_subnet_id" {
value = module.subnet.public_subnet_id
description = "The ID of the subnet."
}
output "public_subnet_cidrs" {
value = module.subnet.public_subnet_cidrs
description = "CIDR blocks of the created public subnets."
}
output "public_subnet_cidrs_ipv6" {
value = module.subnet.public_subnet_cidrs_ipv6
description = "CIDR blocks of the created public subnets."
}
output "private_subnet_id" {
value = module.subnet.private_subnet_id
description = "The ID of the private subnet."
}
output "private_subnet_cidrs" {
value = module.subnet.private_subnet_cidrs
description = "CIDR blocks of the created private subnets."
}
output "private_subnet_cidrs_ipv6" {
value = module.subnet.private_subnet_cidrs_ipv6
description = "CIDR blocks of the created private subnets."
}
output "public_route_tables_id" {
value = module.subnet.public_route_tables_id
description = "The ID of the routing table."
}
output "private_route_tables_id" {
value = module.subnet.private_route_tables_id
description = "The ID of the routing table."
}
output "private_tags" {
value = module.subnet.private_tags
description = "A mapping of private tags to assign to the resource."
}
output "public_tags" {
value = module.subnet.public_tags
description = "A mapping of public tags to assign to the resource."
}
output "public_acl" {
value = module.subnet.public_acl
description = "The ID of the network ACL."
}
output "private_acl" {
value = module.subnet.private_acl
description = "The ID of the network ACL."
}
# ---------------------------------SECURITY-GROUP-------------------------------
output "prefix_list_id" {
value = module.ssh.prefix_list_id
description = "The ID of the prefix list."
}
output "security_group_id" {
value = module.ssh.security_group_id
description = "IDs on the AWS Security Groups associated with the instance."
}
output "security_group_arn" {
value = module.ssh.security_group_arn
description = "IDs on the AWS Security Groups associated with the instance."
}
output "security_group_tags" {
value = module.ssh.security_group_tags
description = "A mapping of public tags to assign to the resource."
}
# ---------------------------------TRANSIT-GATEWAY------------------------------
##---------
# tgw_hub
##---------
output "tgw_hub_transit_gateway_id" {
value = module.tgw_hub.transit_gateway_id
description = "The ID of the Transit Gateway."
}
output "tgw_hub_resource_share_arn" {
value = module.tgw_hub.resource_share_arn
description = "The ARN of the RAM."
}
output "tgw_hub_ec2_transit_gateway_arn" {
value = module.tgw_hub.ec2_transit_gateway_arn
description = "EC2 Transit Gateway Amazon Resource Name (ARN)"
}
output "tgw_hub_ec2_transit_gateway_route_table_id" {
value = module.tgw_hub.ec2_transit_gateway_route_table_id
description = "EC2 Transit Gateway Route Table identifier"
}
output "tgw_hub_ec2_transit_gateway_vpc_attachment" {
value = module.tgw_hub.ec2_transit_gateway_vpc_attachment
description = "Map of EC2 Transit Gateway VPC Attachment attributes"
}
output "tgw_hub_ram_resource_share_id" {
value = module.tgw_hub.ram_resource_share_id
description = "The Amazon Resource Name (ARN) of the resource share"
}
output "tgw_hub_ec2_transit_gateway_association_default_route_table_id" {
value = module.tgw_hub.ec2_transit_gateway_association_default_route_table_id
description = "Identifier of the default association route table"
}
output "tgw_hub_ec2_transit_gateway_propagation_default_route_table_id" {
value = module.tgw_hub.ec2_transit_gateway_propagation_default_route_table_id
description = "Identifier of the default propagation route table"
}
output "tgw_hub_ec2_transit_gateway_vpc_attachment_ids" {
value = module.tgw_hub.ec2_transit_gateway_vpc_attachment_ids
description = "List of EC2 Transit Gateway VPC Attachment identifiers"
}
output "tgw_hub_ram_principal_association_id" {
value = module.tgw_hub.ram_principal_association_id
description = "The Amazon Resource Name (ARN) of the Resource Share and the principal, separated by a comma"
}
output "tgw_hub_ec2_transit_gateway_owner_id" {
value = module.tgw_hub.ec2_transit_gateway_owner_id
description = "Identifier of the AWS account that owns the EC2 Transit Gateway"
}
##----------
# tgw_spoke
##----------
output "tgw_spoke_transit_gateway_id" {
value = module.tgw_spoke.transit_gateway_id
description = "The ID of the Transit Gateway."
}
output "tgw_spoke_resource_share_arn" {
value = module.tgw_spoke.resource_share_arn
description = "The ARN of the RAM."
}
output "tgw_spoke_ec2_transit_gateway_arn" {
value = module.tgw_spoke.ec2_transit_gateway_arn
description = "EC2 Transit Gateway Amazon Resource Name (ARN)"
}
output "tgw_spoke_ec2_transit_gateway_route_table_id" {
value = module.tgw_spoke.ec2_transit_gateway_route_table_id
description = "EC2 Transit Gateway Route Table identifier"
}
output "tgw_spoke_ec2_transit_gateway_vpc_attachment" {
value = module.tgw_spoke.ec2_transit_gateway_vpc_attachment
description = "Map of EC2 Transit Gateway VPC Attachment attributes"
}
output "tgw_spoke_ram_resource_share_id" {
value = module.tgw_spoke.ram_resource_share_id
description = "The Amazon Resource Name (ARN) of the resource share"
}
output "tgw_spoke_ec2_transit_gateway_association_default_route_table_id" {
value = module.tgw_spoke.ec2_transit_gateway_association_default_route_table_id
description = "Identifier of the default association route table"
}
output "tgw_spoke_ec2_transit_gateway_propagation_default_route_table_id" {
value = module.tgw_spoke.ec2_transit_gateway_propagation_default_route_table_id
description = "Identifier of the default propagation route table"
}
output "tgw_spoke_ec2_transit_gateway_vpc_attachment_ids" {
value = module.tgw_spoke.ec2_transit_gateway_vpc_attachment_ids
description = "List of EC2 Transit Gateway VPC Attachment identifiers"
}
output "tgw_spoke_ram_principal_association_id" {
value = module.tgw_spoke.ram_principal_association_id
description = "The Amazon Resource Name (ARN) of the Resource Share and the principal, separated by a comma"
}
output "tgw_spoke_ec2_transit_gateway_owner_id" {
value = module.tgw_spoke.ec2_transit_gateway_owner_id
description = "Identifier of the AWS account that owns the EC2 Transit Gateway"
}
# ---------------------------------ACM------------------------------------------
output "id" {
value = module.acm.id
description = "The ID of the Certificate."
}
output "acm_arn" {
value = module.acm.arn
description = "The ARN of the Certificate."
}
output "acm_certificate_domain_validation_options" {
value = module.acm.acm_certificate_domain_validation_options
description = "A list of attributes to feed into other resources to complete certificate validation. Can have more than one element, e.g. if SANs are defined. Only set if DNS-validation was used."
}
output "acm_certificate_status" {
value = module.acm.acm_certificate_status
description = "Status of the certificate."
}
output "validation_route53_record_fqdns" {
value = module.acm.validation_route53_record_fqdns
description = "List of FQDNs built using the zone domain and name."
}
# ---------------------------------ROUTE-53-------------------------------------
output "zone_id" {
value = module.route53.zone_id
description = "The Hosted Zone ID. This can be referenced by zone records."
}
# ---------------------------------CLIENT-VPN-----------------------------------
output "key" {
value = module.vpn.key
description = "A mapping of tags to assign to the key."
sensitive = true
}
output "cert" {
value = module.vpn.cert
description = "A mapping of tags to assign to the certificate."
sensitive = true
}
output "sg_id" {
value = module.vpn.sg_id
description = "The ID of the SG for Client VPN."
}
output "vpn_id" {
value = module.vpn.vpn_id
description = "The ID of the Client VPN endpoint."
}
output "vpn_arn" {
value = module.vpn.vpn_arn
description = "The ARN of the Client VPN endpoint."
}
output "vpn_dns_name" {
value = module.vpn.vpn_dns_name
description = "VPN DNS name"
}