-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
193 lines (155 loc) · 6.35 KB
/
outputs.tf
File metadata and controls
193 lines (155 loc) · 6.35 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
output "availability_zones" {
description = "List of Availability Zones where subnets were created"
value = module.subnets.availability_zones
}
output "availability_zone_ids" {
description = "List of Availability Zones IDs where subnets were created, when available"
value = module.subnets.availability_zone_ids
}
output "public_subnet_ids" {
description = "IDs of the created public subnets"
value = module.subnets.public_subnet_ids
}
output "public_subnet_arns" {
description = "ARNs of the created public subnets"
value = module.subnets.public_subnet_arns
}
output "private_subnet_ids" {
description = "IDs of the created private subnets"
value = module.subnets.private_subnet_ids
}
output "private_subnet_arns" {
description = "ARNs of the created private subnets"
value = module.subnets.private_subnet_arns
}
# Provide some consistency in CIDR outputs by always returning a list.
# Avoid (or at least reduce) `count` problems by toggling the return
# value via configuration rather than computing it via `compact()`.
output "public_subnet_cidrs" {
description = "IPv4 CIDR blocks of the created public subnets"
value = module.subnets.public_subnet_cidrs
}
output "private_subnet_cidrs" {
description = "IPv4 CIDR blocks of the created private subnets"
value = module.subnets.private_subnet_cidrs
}
output "public_route_table_ids" {
description = "IDs of the created public route tables"
value = module.subnets.public_route_table_ids
}
output "private_route_table_ids" {
description = "IDs of the created private route tables"
value = module.subnets.private_route_table_ids
}
output "public_network_acl_id" {
description = "ID of the Network ACL created for public subnets"
value = module.subnets.public_network_acl_id
}
output "private_network_acl_id" {
description = "ID of the Network ACL created for private subnets"
value = module.subnets.private_network_acl_id
}
output "nat_gateway_ids" {
description = "IDs of the NAT Gateways created"
value = module.subnets.nat_gateway_ids
}
output "nat_instance_ids" {
description = "IDs of the NAT Instances created"
value = module.subnets.nat_instance_ids
}
output "nat_instance_ami_id" {
description = "ID of AMI used by NAT instance"
value = module.subnets.nat_instance_ami_id
}
output "nat_ips" {
description = "Elastic IP Addresses in use by NAT"
value = module.subnets.nat_ips
}
output "nat_eip_allocation_ids" {
description = "Elastic IP allocations in use by NAT"
value = module.subnets.nat_eip_allocation_ids
}
output "az_private_subnets_map" {
description = "Map of AZ names to list of private subnet IDs in the AZs"
value = module.subnets.az_private_subnets_map
}
output "az_public_subnets_map" {
description = "Map of AZ names to list of public subnet IDs in the AZs"
value = module.subnets.az_public_subnets_map
}
output "az_private_route_table_ids_map" {
description = "Map of AZ names to list of private route table IDs in the AZs"
value = module.subnets.az_private_route_table_ids_map
}
output "az_public_route_table_ids_map" {
description = "Map of AZ names to list of public route table IDs in the AZs"
value = module.subnets.az_public_route_table_ids_map
}
output "named_private_subnets_map" {
description = "Map of subnet names (specified in `subnets_per_az_names` variable) to lists of private subnet IDs"
value = module.subnets.named_private_subnets_map
}
output "named_public_subnets_map" {
description = "Map of subnet names (specified in `subnets_per_az_names` variable) to lists of public subnet IDs"
value = module.subnets.named_public_subnets_map
}
output "named_private_route_table_ids_map" {
description = "Map of subnet names (specified in `subnets_per_az_names` variable) to lists of private route table IDs"
value = module.subnets.named_private_route_table_ids_map
}
output "named_public_route_table_ids_map" {
description = "Map of subnet names (specified in `subnets_per_az_names` variable) to lists of public route table IDs"
value = module.subnets.named_public_route_table_ids_map
}
output "named_private_subnets_stats_map" {
description = "Map of subnet names (specified in `subnets_per_az_names` variable) to lists of objects with each object having three items: AZ, private subnet ID, private route table ID"
value = module.subnets.named_private_subnets_stats_map
}
output "named_public_subnets_stats_map" {
description = "Map of subnet names (specified in `subnets_per_az_names` variable) to lists of objects with each object having three items: AZ, public subnet ID, public route table ID"
value = module.subnets.named_public_subnets_stats_map
}
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 primary IPv4 CIDR block of the VPC"
}
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 "additional_cidr_blocks" {
description = "A list of the additional IPv4 CIDR blocks associated with the VPC"
value = module.vpc.additional_cidr_blocks
}
output "additional_cidr_blocks_to_association_ids" {
description = "A map of the additional IPv4 CIDR blocks to VPC CIDR association IDs"
value = module.vpc.additional_cidr_blocks_to_association_ids
}
output "igw_id" {
value = module.vpc.igw_id
description = "The ID of the Internet Gateway"
}
output "vpc_endpoint_sg_id" {
value = aws_security_group.endpoint_security_group.id
description = "ID of the security group that allows access to the vpc endpoints"
}