-
Notifications
You must be signed in to change notification settings - Fork 34
/
variables.tf
289 lines (243 loc) · 7.54 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
variable "environment" {
description = "Specify the environment indentifier for the VPC"
type = string
default = ""
}
variable "name" {
description = "Specify the name of the VPC"
type = string
default = ""
}
variable "vpc_cidr" {
description = "The CIDR block of the VPC"
default = "10.0.0.0/16"
type = string
}
variable "availability_zones" {
description = "Number of Availability Zone to be used by VPC Subnets"
default = []
type = list(any)
}
variable "public_subnet_enabled" {
description = "Set true to enable public subnets"
default = false
type = bool
}
variable "public_subnet_cidrs" {
description = "A list of public subnets CIDR to be created inside the VPC"
default = []
type = list(any)
}
variable "private_subnet_enabled" {
description = "Set true to enable private subnets"
default = false
type = bool
}
variable "private_subnet_cidrs" {
description = "A list of private subnets CIDR to be created inside the VPC"
default = []
type = list(any)
}
variable "database_subnet_enabled" {
description = "Set true to enable database subnets"
default = false
type = bool
}
variable "database_subnet_cidrs" {
description = "Database Tier subnet CIDRs to be created"
default = []
type = list(any)
}
variable "intra_subnet_enabled" {
description = "Set true to enable intra subnets"
default = false
type = bool
}
variable "intra_subnet_cidrs" {
description = "A list of intra subnets CIDR to be created"
default = []
type = list(any)
}
variable "vpn_server_enabled" {
description = "Set to true if you want to deploy VPN Gateway resource and attach it to the VPC"
default = false
type = bool
}
variable "vpn_server_instance_type" {
description = "EC2 instance Type for VPN Server, Only amd64 based instance type are supported eg. t2.medium, t3.micro, c5a.large etc. "
default = "t3a.small"
type = string
}
variable "vpn_key_pair_name" {
description = "Specify the name of AWS Keypair to be used for VPN Server"
default = ""
type = string
}
variable "default_network_acl_ingress" {
description = "List of maps of ingress rules to set on the Default Network ACL"
type = list(map(string))
default = [
{
rule_no = 98
action = "deny"
from_port = 22
to_port = 22
protocol = "tcp"
cidr_block = "0.0.0.0/0"
},
{
rule_no = 99
action = "deny"
from_port = 3389
to_port = 3389
protocol = "tcp"
cidr_block = "0.0.0.0/0"
},
{
rule_no = 100
action = "allow"
from_port = 0
to_port = 0
protocol = "-1"
cidr_block = "0.0.0.0/0"
},
{
rule_no = 101
action = "allow"
from_port = 0
to_port = 0
protocol = "-1"
ipv6_cidr_block = "::/0"
},
]
}
variable "one_nat_gateway_per_az" {
description = "Set to true if a NAT Gateway is required per availability zone for Private Subnet Tier"
default = false
type = bool
}
variable "flow_log_enabled" {
description = "Whether or not to enable VPC Flow Logs"
type = bool
default = false
}
variable "flow_log_cloudwatch_log_group_retention_in_days" {
description = "Specifies the number of days you want to retain log events in the specified log group for VPC flow logs."
type = number
default = null
}
variable "flow_log_max_aggregation_interval" {
description = "The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. Valid Values: `60` seconds or `600` seconds."
type = number
default = 60
}
variable "auto_assign_public_ip" {
description = "Specify true to indicate that instances launched into the subnet should be assigned a public IP address."
type = bool
default = false
}
variable "ipv6_enabled" {
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."
type = bool
default = false
}
variable "private_subnet_assign_ipv6_address_on_creation" {
description = "Assign IPv6 address on private subnet, must be disabled to change IPv6 CIDRs. This is the IPv6 equivalent of map_public_ip_on_launch"
type = bool
default = null
}
variable "public_subnet_assign_ipv6_address_on_creation" {
description = "Assign IPv6 address on public subnet, must be disabled to change IPv6 CIDRs. This is the IPv6 equivalent of map_public_ip_on_launch"
type = bool
default = null
}
variable "database_subnet_assign_ipv6_address_on_creation" {
description = "Assign IPv6 address on database subnet, must be disabled to change IPv6 CIDRs. This is the IPv6 equivalent of map_public_ip_on_launch"
type = bool
default = null
}
variable "intra_subnet_assign_ipv6_address_on_creation" {
description = "Assign IPv6 address on intra subnet, must be disabled to change IPv6 CIDRs. This is the IPv6 equivalent of map_public_ip_on_launch"
type = bool
default = null
}
variable "flow_log_cloudwatch_log_group_kms_key_arn" {
description = "The ARN of the KMS Key to use when encrypting log data for VPC flow logs"
type = string
default = null
}
variable "ipv6_only" {
description = "Enable it for deploying native IPv6 network"
type = bool
default = false
}
variable "secondary_cidr_blocks" {
description = "List of the secondary CIDR blocks which can be at most 5"
type = list(string)
default = []
}
variable "secondry_cidr_enabled" {
description = "Whether enable secondary CIDR with VPC"
default = false
type = bool
}
variable "enable_database_subnet_group" {
description = "Whether create database subnet groups"
default = false
type = bool
}
# variable "tags" {
# description = "The Tags attached with the resources"
# default = {}
# type = any
# }
variable "ipam_pool_id" {
description = "The existing IPAM pool id if any"
default = null
type = string
}
variable "ipam_enabled" {
description = "Whether enable IPAM managed VPC or not"
default = false
type = bool
}
variable "create_ipam_pool" {
description = "Whether create new IPAM pool"
default = true
type = bool
}
variable "ipv4_netmask_length" {
description = "The netmask length for IPAM managed VPC"
default = 16
type = number
}
variable "region" {
description = "The AWS region name"
type = string
default = null
}
variable "existing_ipam_managed_cidr" {
description = "The existing IPAM pool CIDR"
default = ""
type = string
}
variable "flow_log_cloudwatch_log_group_skip_destroy" {
description = " Set to true if you do not wish the log group (and any logs it may contain) to be deleted at destroy time, and instead just remove the log group from the Terraform state"
type = bool
default = false
}
variable "vpc_s3_endpoint_enabled" {
description = "Set to true if you want to enable vpc S3 endpoints"
type = bool
default = false
}
variable "vpc_ecr_endpoint_enabled" {
description = "Set to true if you want to enable vpc ecr endpoints"
type = bool
default = false
}
variable "kms_key_arn" {
description = "ARN of the KMS key to encrypt VPN server EBS volume"
type = string
default = ""
}