forked from cmdlabs/cmd-tf-aws-vpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
218 lines (184 loc) · 5.1 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
variable "vpc_name" {
type = string
description = "Name that will be prefixed to resources"
}
variable "vpc_cidr_block" {
type = string
description = "The CIDR block of the VPC"
}
variable "vpc_endpoints" {
type = list(string)
description = "List of VPC Interface endpoints"
default = []
}
variable "vpc_gatewayendpoints" {
type = list(string)
description = "List of VPC Gateway endpoints"
default = []
}
variable "vpc_enable_dns_support" {
type = bool
description = "Enable VPC DNS resolver"
default = true
}
variable "vpc_enable_dns_hostnames" {
type = bool
description = "Enable VPC DNS hostname resolution"
default = true
}
variable "availability_zones" {
type = list(string)
description = "List of availability zones"
}
variable "public_subnet_newbits" {
type = number
description = "newbits value for calculating the public subnet size"
default = 2
}
variable "public_tier_netnum" {
type = number
description = "netnum value for calculating the public tier cidr"
default = 0
}
variable "public_tier_newbits" {
type = number
description = "newbits value for calculating the public tier size"
default = 2
}
variable "private_subnet_newbits" {
type = number
description = "newbits value for calculating the private subnet size"
default = 2
}
variable "private_tier_netnum" {
type = number
description = "netnum value for calculating the private tier cidr"
default = 1
}
variable "private_tier_newbits" {
type = number
description = "newbits value for calculating the private tier size"
default = 2
}
variable "secure_subnet_newbits" {
type = number
description = "newbits value for calculating the secure subnet size"
default = 2
}
variable "secure_tier_netnum" {
type = number
description = "netnum value for calculating the secure tier cidr"
default = 2
}
variable "secure_tier_newbits" {
type = number
description = "newbits value for calculating the secure tier size"
default = 2
}
variable "enable_db_subnet_group" {
type = bool
description = "Create the secure DB VPC subnet group"
default = true
}
variable "enable_redshift_subnet_group" {
type = bool
description = "Create the secure Redshift VPC subnet group"
default = true
}
variable "enable_elasticache_subnet_group" {
type = bool
description = "Create the secure Elasticache VPC subnet group"
default = true
}
variable "enable_internet_gateway" {
type = bool
description = "Attach an internet gateway to the VPC"
default = true
}
variable "enable_nat_gateway" {
type = bool
description = "Create nat gateways in the VPC,"
default = true
}
variable "enable_per_az_nat_gateway" {
type = bool
description = "Create 1 nat gateway per AZ"
default = true
}
variable "enable_virtual_private_gateway" {
type = bool
description = "Attach a virtual private gateway to the VPC"
default = false
}
variable "virtual_private_gateway_asn" {
type = number
description = "ASN for the Amazon side of the VPG"
default = 64512
}
variable "enable_custom_dhcp_options" {
type = bool
description = "Enable custom DHCP options, you must specify custom_dhcp_options"
default = false
}
variable "custom_dhcp_options" {
type = object({
domain_name = string,
domain_name_servers = list(string),
ntp_servers = list(string),
netbios_name_servers = list(string),
netbios_node_type = number
})
description = "Custom DHCP options"
default = {
domain_name = null
domain_name_servers = null
ntp_servers = null
netbios_name_servers = null
netbios_node_type = null
}
}
variable "nacl_allow_all_vpc_traffic" {
type = bool
description = "Add a rule to all NACLs allowing all traffic to/from the vpc cidr"
default = true
}
variable "nacl_allow_all_ephemeral" {
type = bool
description = "Add a rule to all NACLs allowing all ephemeral ports"
default = true
}
variable "nacl_allow_all_http" {
type = bool
description = "Add a rule to all NACLs allowing http egress"
default = true
}
variable "nacl_allow_all_https" {
type = bool
description = "Add a rule to all NACLs allowing https egress"
default = true
}
variable "nacl_block_public_to_secure" {
type = bool
description = "Block all traffic between public and secure tiers"
default = false
}
variable "nacl_public_custom" {
type = map
description = "List of custom nacls to apply to the public tier"
default = {}
}
variable "nacl_private_custom" {
type = map
description = "List of custom nacls to apply to the private tier"
default = {}
}
variable "nacl_secure_custom" {
type = map
description = "List of custom nacls to apply to the secure tier"
default = {}
}
variable "tags" {
type = map(string)
description = "Tags applied to all resources"
default = {}
}