generated from clowdhaus/terraform-aws-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
411 lines (339 loc) · 13 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
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
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
variable "create" {
description = "Controls if VPC should be created (it affects almost all resources)"
type = bool
default = true
}
variable "name" {
description = "Name to be used on all the resources as identifier"
type = string
default = ""
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}
################################################################################
# VPC
################################################################################
variable "ipv4_cidr_block" {
description = "The IPv4 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using `ipv4_netmask_length`"
type = string
default = null
}
variable "ipv4_ipam_pool_id" {
description = "The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR"
type = string
default = null
}
variable "ipv4_netmask_length" {
description = "The netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying a `ipv4_ipam_pool_id`"
type = number
default = null
}
variable "ipv6_cidr_block" {
description = "IPv6 CIDR block to request from an IPAM Pool. Can be set explicitly or derived from IPAM using `ipv6_netmask_length`"
type = string
default = null
}
variable "ipv6_ipam_pool_id" {
description = "IPAM Pool ID for a IPv6 pool. Conflicts with `assign_generated_ipv6_cidr_block`"
type = string
default = null
}
variable "ipv6_netmask_length" {
description = "Netmask length to request from IPAM Pool. Conflicts with `ipv6_cidr_block`. This can be omitted if IPAM pool as a `allocation_default_netmask_length` set. Valid values: `56`"
type = number
default = null
}
variable "ipv6_cidr_block_network_border_group" {
description = "By default when an IPv6 CIDR is assigned to a VPC a default `ipv6_cidr_block_network_border_group` will be set to the region of the VPC"
type = string
default = null
}
variable "assign_generated_ipv6_cidr_block" {
description = "Requests an Amazon-provided IPv6 CIDR block with a `/56` prefix length for the VPC. You cannot specify the range of IP addresses, or the size of the CIDR block. Default is `false`. Conflicts with `ipv6_ipam_pool_id`"
type = bool
default = null
}
variable "instance_tenancy" {
description = "A tenancy option for instances launched into the VPC. Default is `default`, which makes your instances shared on the host"
type = string
default = null
}
variable "enable_dns_support" {
description = "A boolean flag to enable/disable DNS support in the VPC. Defaults `true`"
type = bool
default = null
}
variable "enable_dns_hostnames" {
description = "A boolean flag to enable/disable DNS hostnames in the VPC. Defaults `false`"
type = bool
default = null
}
variable "vpc_tags" {
description = "Additional tags for the VPC"
type = map(string)
default = {}
}
################################################################################
# VPC CIDR Block Association(s)
################################################################################
variable "ipv4_cidr_block_associations" {
description = "Map of additional IPv4 CIDR blocks to associate with the VPC to extend the IP address pool"
type = any
default = {}
}
variable "ipv6_cidr_block_associations" {
description = "Map of additional IPv6 CIDR blocks to associate with the VPC to extend the IP address pool"
type = any
default = {}
}
################################################################################
# Route53 Resolver
################################################################################
variable "enable_dnssec_config" {
description = "Controls if Route53 Resolver DNSSEC Config is enabled/disabled"
type = bool
default = true
}
variable "enable_dns_query_logging" {
description = "Controls if Route53 Resolver DNS Query Logging is enabled/disabled"
type = bool
default = false
}
variable "create_dns_query_log_config" {
description = "Controls if Route53 Resolver DNS Query Log Config is created. If `false`, then `dns_query_log_config_id` must be provided if `enable_dns_query_logging` is `true`"
type = bool
default = true
}
variable "dns_query_log_config_id" {
description = "The ID of an existing Route53 Resolver DNS Query Log Config to associate with the VPC"
type = string
default = null
}
variable "dns_query_log_destintion_arn" {
description = "The ARN of the resource that you want Route 53 Resolver to send query logs. You can send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream"
type = string
default = null
}
################################################################################
# DNS Firewall Rule Group Association
################################################################################
variable "enable_dns_firewall" {
description = "Controls if Route53 Resolver DNS Firewall is enabled/disabled"
type = bool
default = false
}
variable "dns_firewall_fail_open" {
description = "Determines how Route 53 Resolver handles queries during failures. Valid values: `ENABLED`, `DISABLED`. Defaults is `ENABLED`"
type = string
default = "ENABLED"
}
variable "dns_firewall_rule_group_associations" {
description = "Map of Route53 Resolver Firewall Rule Groups to associate with the VPC"
type = any
default = {}
}
################################################################################
# DHCP Options Set
################################################################################
variable "create_dhcp_options" {
description = "Controls if custom DHCP options set is created"
type = bool
default = false
}
variable "dhcp_options_domain_name" {
description = "The suffix domain name to use by default when resolving non fully qualified domain names"
type = string
default = null
}
variable "dhcp_options_domain_name_servers" {
description = "List of name servers to configure in `/etc/resolv.conf`"
type = list(string)
default = ["AmazonProvidedDNS"]
}
variable "dhcp_options_ntp_servers" {
description = "List of NTP servers to configure"
type = list(string)
default = null
}
variable "dhcp_options_netbios_name_servers" {
description = "List of NETBIOS name servers"
type = list(string)
default = null
}
variable "dhcp_options_netbios_node_type" {
description = "The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network"
type = number
default = null
}
variable "dhcp_options_tags" {
description = "Additional tags for the DHCP option set"
type = map(string)
default = {}
}
################################################################################
# Internet Gateway
################################################################################
variable "create_internet_gateway" {
description = "Controls if an internet gateway is created"
type = bool
default = true
}
variable "attach_internet_gateway" {
description = "Controls if an internet gateway is attached to the VPC"
type = bool
default = true
}
variable "internet_gateway_id" {
description = "The ID of an existing internet gateway to attach to the VPC. Reqiured if `create_internet_gateway` is `false` and `attach_internet_gateway` is `true`"
type = string
default = null
}
variable "create_egress_only_internet_gateway" {
description = "Controls if an egress only internet gateway is created"
type = bool
default = false
}
variable "internet_gateway_tags" {
description = "Additional tags for the internet gateway/egress only internet gateway"
type = map(string)
default = {}
}
################################################################################
# Customer Gateway(s)
################################################################################
variable "customer_gateways" {
description = "Map of Customer Gateway definitions to create"
type = any
default = {}
}
variable "customer_gateway_tags" {
description = "Additional tags for the Customer Gateway(s)"
type = map(string)
default = {}
}
################################################################################
# VPN Gateway(s)
################################################################################
variable "vpn_gateways" {
description = "Map of VPN Gateway definitions to create"
type = any
default = {}
}
variable "vpn_gateway_tags" {
description = "Additional tags for the VPN Gateway(s)"
type = map(string)
default = {}
}
################################################################################
# VPC Default Security Group
################################################################################
variable "manage_default_security_group" {
description = "Determines whether the Default Security Group is adopted and managed by the module"
type = bool
default = true
}
variable "default_security_group_ingress_rules" {
description = "Ingress rules to be added to the Default Security Group"
type = list(map(string))
default = []
}
variable "default_security_group_egress_rules" {
description = "Egress rules to be added to the Default Security Group"
type = list(map(string))
default = []
}
variable "default_security_group_tags" {
description = "Additional tags for the Default Security Group"
type = map(string)
default = {}
}
################################################################################
# VPC Default Network ACL
################################################################################
variable "manage_default_network_acl" {
description = "Determines whether the default network ACL is adopted and managed by the module"
type = bool
default = true
}
variable "default_network_acl_ingress_rules" {
description = "Ingress rules to be added to the Default Network ACL"
type = any
default = {}
}
variable "default_network_acl_egress_rules" {
description = "Egress rules to be added to the Default Network ACL"
type = any
default = {}
}
variable "default_network_acl_tags" {
description = "Additional tags for the default network ACL"
type = map(string)
default = {}
}
################################################################################
# VPC Default Route Table
################################################################################
variable "manage_default_route_table" {
description = "Determines whether the default route table is adopted and managed by the module"
type = bool
default = true
}
variable "default_route_table_propagating_vgws" {
description = "List of virtual gateways for propagation"
type = list(string)
default = []
}
variable "default_route_table_routes" {
description = "Configuration block of routes. See [`route`](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/default_route_table#route) for more information"
type = list(map(string))
default = []
}
variable "default_route_table_timeouts" {
description = "Create and update timeout configurations for the default route table"
type = map(string)
default = {}
}
variable "default_route_table_tags" {
description = "Additional tags for the default route table"
type = map(string)
default = {}
}
################################################################################
# Account Default DHCP Options
################################################################################
variable "manage_default_dhcp_options" {
description = "Determines whether the default DHCP options are adopted and managed by the module"
type = bool
default = false
}
variable "default_dhcp_options_tags" {
description = "Additional tags for the default DHCP options"
type = map(string)
default = {}
}
################################################################################
# Account Default VPC
################################################################################
variable "manage_default_vpc" {
description = "Determines whether the default VPC is adopted and managed by the module"
type = bool
default = false
}
variable "default_vpc_enable_dns_support" {
description = "A boolean flag to enable/disable DNS support in the VPC. Defaults `true`"
type = bool
default = null
}
variable "default_vpc_enable_dns_hostnames" {
description = "A boolean flag to enable/disable DNS hostnames in the VPC. Defaults `false`"
type = bool
default = null
}
variable "default_vpc_tags" {
description = "Additional tags for the Default VPC"
type = map(string)
default = {}
}