-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
292 lines (261 loc) · 7.41 KB
/
variables.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
variable "cidr_block" {
type = string
default = null
description = <<-EOT
The IPv4 CIDR block for the VPC. CIDR can be explicitly set or it can be
derived from IPAM using `ipv4_netmask_length`.
EOT
}
variable "dhcp_options" {
type = any
default = {}
description = <<-EOT
A map of to manage the DHCP options attributes for the VPC. For information
about the arguments relevant for this resource type, see [Argument Reference](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_dhcp_options#argument-reference).
EOT
}
variable "dhcp_options_tags" {
type = map(string)
default = {}
description = <<-EOT
A map of tags to assign to the DHCP options. Resource specific tags will
override all other tags.
EOT
}
variable "eip_nat_tags" {
type = map(string)
default = {}
description = <<-EOT
A map of tags to assign to the EIP resources for the NAT Gateways. Resource
specific tags will override all other tags.
EOT
}
variable "enable_dns_hostnames" {
type = bool
default = false
description = "A boolean flag to enable/disable DNS hostnames in the VPC."
}
variable "enable_dns_support" {
type = bool
default = true
description = "A boolean flag to enable/disable DNS support in the VPC."
}
variable "igw_tags" {
type = map(string)
default = {}
description = <<-EOT
A map of tags to assign to the internet gateway resource. Resource specific
tags will override all other tags.
EOT
}
variable "instance_tenancy" {
type = string
default = null
description = "A tenancy option for instances launched into the VPC."
}
variable "internal_subnets" {
type = any
default = {}
description = "A map of attributes to define internal subnets for the VPC."
}
variable "internal_route_table_tags" {
type = map(string)
default = {}
description = <<-EOT
A map of tags to assign to the internal route table resource. Resource
specific tags will override all other tags.
EOT
}
variable "internal_subnets_tags" {
type = map(string)
default = {}
description = <<-EOT
A map of tags to assign to the internal subnets resources. Resource specific
tags will override all other tags.
EOT
}
variable "manage_vpc" {
type = bool
default = true
description = "A boolean flag to control whether or not to manage VPC resources."
}
variable "name" {
type = string
default = null
description = "Name to be used as an identifier of all managed resources."
}
variable "nat_gateway_tags" {
type = map(string)
default = {}
description = <<-EOT
A map of tags to assign to the NAT Gateway resources. Resource specific tags
will override all other tags.
EOT
}
variable "network_acl_internal_egress" {
type = map(any)
default = {
"100" = {
"cidr_block" = "0.0.0.0/0"
"from_port" = "0"
"protocol" = "-1"
"rule_action" = "allow"
"to_port" = "0"
}
}
description = "A map of egress rules applied to the internal subnets network ACL."
}
variable "network_acl_internal_ingress" {
type = map(any)
default = {
"100" = {
"cidr_block" = "0.0.0.0/0"
"from_port" = "0"
"protocol" = "-1"
"rule_action" = "allow"
"to_port" = "0"
}
}
description = "A map of ingress rules applied to the internal subnets network ACL."
}
variable "network_acl_internal_tags" {
type = map(string)
default = {}
description = <<-EOT
A map of tags to assign to the Network ACL applied to the internal subnets.
EOT
}
variable "network_acl_private_egress" {
type = map(any)
default = {
"100" = {
"cidr_block" = "0.0.0.0/0"
"from_port" = "0"
"protocol" = "-1"
"rule_action" = "allow"
"to_port" = "0"
}
}
description = "A map of egress rules applied to the internal subnets network ACL."
}
variable "network_acl_private_ingress" {
type = map(any)
default = {
"100" = {
"cidr_block" = "0.0.0.0/0"
"from_port" = "0"
"protocol" = "-1"
"rule_action" = "allow"
"to_port" = "0"
}
}
description = "A map of ingress rules applied to the internal subnets network ACL."
}
variable "network_acl_private_tags" {
type = map(string)
default = {}
description = <<-EOT
A map of tags to assign to the Network ACL applied to the private subnets.
EOT
}
variable "network_acl_public_egress" {
type = map(any)
default = {
"100" = {
"cidr_block" = "0.0.0.0/0"
"from_port" = "0"
"protocol" = "-1"
"rule_action" = "allow"
"to_port" = "0"
}
}
description = "A map of egress rules applied to the internal subnets network ACL."
}
variable "network_acl_public_ingress" {
type = map(any)
default = {
"100" = {
"cidr_block" = "0.0.0.0/0"
"from_port" = "0"
"protocol" = "-1"
"rule_action" = "allow"
"to_port" = "0"
}
}
description = "A map of ingress rules applied to the internal subnets network ACL."
}
variable "network_acl_public_tags" {
type = map(string)
default = {}
description = <<-EOT
A map of tags to assign to the Network ACL applied to the public subnets.
EOT
}
variable "private_subnets" {
type = any
default = {}
description = "A map of attributes to define private subnets for the VPC."
}
variable "private_route_table_tags" {
type = map(string)
default = {}
description = <<-EOT
A map of tags to assign to the private route table resource. Resource
specific tags will override all other tags.
EOT
}
variable "private_subnets_tags" {
type = map(string)
default = {}
description = <<-EOT
A map of tags to assign to the private subnets resources. Resource specific
tags will override all other tags.
EOT
}
variable "public_subnets" {
type = any
default = {}
description = "A map of attributes to define public subnets for the VPC."
}
variable "public_route_table_tags" {
type = map(string)
default = {}
description = <<-EOT
A map of tags to assign to the public route table resource. Resource
specific tags will override all other tags.
EOT
}
variable "public_subnets_tags" {
type = map(string)
default = {}
description = <<-EOT
A map of tags to assign to the public subnets resources. Resource specific
tags will override all other tags.
EOT
}
variable "tags" {
type = map(string)
default = {}
description = <<-EOT
A map of tags to assign to the resource. If configured with a provider
`default_tags` configuration block present, tags with matching keys will
overwrite those defined at the provider-level.
EOT
}
variable "vpc_ipv4_cidr_block_associations" {
type = any
default = {}
description = <<-EOT
A map of additional IPv4 CIDR blocks to associate with the VPC. Requires
`cidr_block`, `ipv4_ipam_pool_id`, or `ipv4_netmask_length` to be defined.
[Argument Reference](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_ipv4_cidr_block_association#argument-reference)
EOT
}
variable "vpc_tags" {
type = map(string)
default = {}
description = <<-EOT
A map of tags to assign to the VPC resource. Resource specific tags will
override all other tags.
EOT
}