generated from opszero/terraform-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
210 lines (169 loc) · 5.91 KB
/
outputs.tf
File metadata and controls
210 lines (169 loc) · 5.91 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
output "public_subnet_id" {
value = aws_subnet.public[*].id
description = "The ID of the subnet."
}
output "public_subnet_cidrs" {
value = aws_subnet.public[*].cidr_block
description = "CIDR blocks of the created public subnets."
}
output "public_subnet_cidrs_ipv6" {
value = aws_subnet.public[*].ipv6_cidr_block
description = "CIDR blocks of the created public subnets."
}
output "private_subnet_id" {
value = aws_subnet.private[*].id
description = "The ID of the private subnet."
}
output "private_subnet_cidrs" {
value = aws_subnet.private[*].cidr_block
description = "CIDR blocks of the created private subnets."
}
output "private_subnet_cidrs_ipv6" {
value = aws_subnet.private[*].ipv6_cidr_block
description = "CIDR blocks of the created private subnets."
}
output "public_route_tables_id" {
value = aws_route_table.public[*].id
description = "The ID of the routing table."
}
output "private_route_tables_id" {
value = aws_route_table.private[*].id
description = "The ID of the routing table."
}
output "private_tags" {
value = var.tags
description = "A mapping of private tags to assign to the resource."
}
output "public_tags" {
value = var.tags
description = "A mapping of public tags to assign to the resource."
}
output "public_acl" {
value = join("", aws_network_acl.public[*].id)
description = "The ID of the network ACL."
}
output "private_acl" {
value = join("", aws_network_acl.private[*].id)
description = "The ID of the network ACL."
}
output "database_subnet_id" {
value = aws_subnet.database[*].id
description = "The ID of the subnet."
}
output "database_subnet_cidrs" {
value = aws_subnet.database[*].cidr_block
description = "CIDR blocks of the created database subnets."
}
output "database_subnet_cidrs_ipv6" {
value = aws_subnet.database[*].ipv6_cidr_block
description = "CIDR blocks of the created database subnets."
}
output "database_acl" {
value = join("", aws_network_acl.database[*].id)
description = "The ID of the network ACL."
}
output "database_route_tables_id" {
value = aws_route_table.database[*].id
description = "The ID of the routing table."
}
output "database_tags" {
value = var.tags
description = "A mapping of public tags to assign to the resource."
}
output "public_subnet_arn" {
value = aws_subnet.public[*].arn
description = "ARNs of all public subnets"
}
output "public_subnet_ipv6_cidr_block_association_id" {
value = aws_subnet.public[*].ipv6_cidr_block_association_id
description = "IPv6 CIDR block association IDs for public subnets"
}
output "public_subnet_owner_id" {
value = aws_subnet.public[*].owner_id
description = "Owner IDs of all public subnets"
}
output "public_subnet_tags_all" {
value = aws_subnet.public[*].tags_all
description = "All tags for public subnets"
}
output "public_private_subnet_arn" {
value = aws_subnet.private[*].arn
description = "ARNs of all public/private subnets"
}
output "public_private_subnet_ipv6_cidr_block_association_id" {
value = aws_subnet.private[*].ipv6_cidr_block_association_id
description = "IPv6 CIDR block association IDs for public/private subnets"
}
output "public_private_subnet_owner_id" {
value = aws_subnet.private[*].owner_id
description = "Owner IDs of all public/private subnets"
}
output "public_private_subnet_tags_all" {
value = aws_subnet.private[*].tags_all
description = "All tags for public/private subnets"
}
output "database_subnet_arn" {
value = aws_subnet.database[*].arn
description = "ARNs of all database subnets"
}
output "database_subnet_ipv6_cidr_block_association_id" {
value = aws_subnet.database[*].ipv6_cidr_block_association_id
description = "IPv6 CIDR block association IDs for database subnets"
}
output "database_subnet_owner_id" {
value = aws_subnet.database[*].owner_id
description = "Owner IDs of all database subnets"
}
output "database_subnet_tags_all" {
value = aws_subnet.database[*].tags_all
description = "All tags for database subnets"
}
output "private_subnet_owner_id" {
value = length(aws_subnet.private) > 0 ? aws_subnet.private[0].owner_id : null
description = "Owner ID of the first private subnet, if it exists"
}
output "public_private_subnet_id" {
value = length(aws_subnet.private) > 0 ? aws_subnet.private[0].id : null
description = "ID of the first private subnet, if it exists"
}
output "private_subnet_tags_all" {
value = length(aws_subnet.private) > 0 ? aws_subnet.private[0].tags_all : null
description = "All tags for the first private subnet, if it exists"
}
output "public_subnet_ids" {
value = aws_subnet.public[*].id
description = "IDs of all public subnets"
}
output "nat_gateway_ids" {
value = aws_nat_gateway.private[*].id
description = "IDs of all NAT gateways"
}
output "private_subnet_arn" {
value = aws_subnet.private[*].arn
description = "ARNs of all private subnets"
}
output "private_subnet_vpc_id" {
value = aws_subnet.private[*].vpc_id
description = "VPC IDs of all private subnets"
}
output "route_table_vpc_id" {
value = aws_route_table.private[*].vpc_id
description = "VPC IDs of all private route tables"
}
output "nat_gateway_subnet_id" {
value = aws_nat_gateway.private[*].subnet_id
description = "Subnet IDs for all NAT gateways"
}
#####database-flow_log
output "flow_log_id" {
value = aws_flow_log.database_subnet_flow_log[*].id
description = "The Flow Log ID."
}
output "flow_log_arn" {
value = aws_flow_log.database_subnet_flow_log[*].arn
description = "The ARN of the Flow Log."
}
output "flow_log_tags_all" {
value = aws_flow_log.database_subnet_flow_log[*].tags_all
description = "A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block."
}