1
+ variable "additional_tags" {
2
+ description = " Additional tags to be applied to AWS resources"
3
+ type = map (string )
4
+ default = {
5
+ Owner = " organization_name"
6
+ Expires = " Never"
7
+ Department = " Engineering"
8
+ }
9
+ }
10
+
11
+ variable "aws_region" {
12
+ description = " Name of the AWS region where VPC is to be created."
13
+ default = " "
14
+ type = string
15
+ }
16
+
17
+ variable "aws_account_id" {
18
+ description = " Account ID of the AWS Account."
19
+ default = " 1234567890"
20
+ type = string
21
+ }
22
+
1
23
variable "environment" {
2
24
description = " Specify the environment indentifier for the VPC"
3
25
type = string
@@ -17,31 +39,31 @@ variable "vpc_cidr" {
17
39
type = string
18
40
}
19
41
20
- variable "availability_zones " {
21
- description = " Number of Availability Zone to be used by VPC Subnets"
42
+ variable "vpc_availability_zones " {
43
+ description = " Number of Availability Zone to be used by VPC Subnets. "
22
44
default = []
23
45
type = list (any )
24
46
}
25
47
26
- variable "public_subnet_enabled " {
48
+ variable "vpc_public_subnet_enabled " {
27
49
description = " Set true to enable public subnets"
28
50
default = false
29
51
type = bool
30
52
}
31
53
32
- variable "public_subnet_cidrs " {
54
+ variable "vpc_public_subnet_cidrs " {
33
55
description = " A list of public subnets CIDR to be created inside the VPC"
34
56
default = []
35
57
type = list (any )
36
58
}
37
59
38
- variable "private_subnet_enabled " {
60
+ variable "vpc_private_subnet_enabled " {
39
61
description = " Set true to enable private subnets"
40
62
default = false
41
63
type = bool
42
64
}
43
65
44
- variable "private_subnet_cidrs " {
66
+ variable "vpc_private_subnet_cidrs " {
45
67
description = " A list of private subnets CIDR to be created inside the VPC"
46
68
default = []
47
69
type = list (any )
@@ -59,13 +81,13 @@ variable "database_subnet_cidrs" {
59
81
type = list (any )
60
82
}
61
83
62
- variable "intra_subnet_enabled " {
84
+ variable "vpc_intra_subnet_enabled " {
63
85
description = " Set true to enable intra subnets"
64
86
default = false
65
87
type = bool
66
88
}
67
89
68
- variable "intra_subnet_cidrs " {
90
+ variable "vpc_intra_subnet_cidrs " {
69
91
description = " A list of intra subnets CIDR to be created"
70
92
default = []
71
93
type = list (any )
@@ -129,25 +151,25 @@ variable "default_network_acl_ingress" {
129
151
]
130
152
}
131
153
132
- variable "one_nat_gateway_per_az " {
154
+ variable "vpc_one_nat_gateway_per_az " {
133
155
description = " Set to true if a NAT Gateway is required per availability zone for Private Subnet Tier"
134
156
default = false
135
157
type = bool
136
158
}
137
159
138
- variable "flow_log_enabled " {
160
+ variable "vpc_flow_log_enabled " {
139
161
description = " Whether or not to enable VPC Flow Logs"
140
162
type = bool
141
163
default = false
142
164
}
143
165
144
- variable "flow_log_cloudwatch_log_group_retention_in_days " {
166
+ variable "vpc_flow_log_cloudwatch_log_group_retention_in_days " {
145
167
description = " Specifies the number of days you want to retain log events in the specified log group for VPC flow logs."
146
168
type = number
147
169
default = null
148
170
}
149
171
150
- variable "flow_log_max_aggregation_interval " {
172
+ variable "vpc_flow_log_max_aggregation_interval " {
151
173
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."
152
174
type = number
153
175
default = 60
@@ -216,18 +238,12 @@ variable "secondry_cidr_enabled" {
216
238
type = bool
217
239
}
218
240
219
- variable "enable_database_subnet_group " {
241
+ variable "database_subnet_group_enabled " {
220
242
description = " Whether create database subnet groups"
221
243
default = false
222
244
type = bool
223
245
}
224
246
225
- # variable "tags" {
226
- # description = "The Tags attached with the resources"
227
- # default = {}
228
- # type = any
229
- # }
230
-
231
247
variable "ipam_pool_id" {
232
248
description = " The existing IPAM pool id if any"
233
249
default = null
@@ -252,19 +268,13 @@ variable "ipv4_netmask_length" {
252
268
type = number
253
269
}
254
270
255
- variable "region" {
256
- description = " The AWS region name"
257
- type = string
258
- default = null
259
- }
260
-
261
271
variable "existing_ipam_managed_cidr" {
262
272
description = " The existing IPAM pool CIDR"
263
273
default = " "
264
274
type = string
265
275
}
266
276
267
- variable "flow_log_cloudwatch_log_group_skip_destroy " {
277
+ variable "vpc_flow_log_cloudwatch_log_group_skip_destroy " {
268
278
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"
269
279
type = bool
270
280
default = false
@@ -281,3 +291,57 @@ variable "vpc_ecr_endpoint_enabled" {
281
291
type = bool
282
292
default = false
283
293
}
294
+
295
+ variable "vpn_gateway_enabled" {
296
+ description = " Whether to enable vpn Gateway"
297
+ type = bool
298
+ default = false
299
+ }
300
+
301
+ variable "dns_hostnames_enabled" {
302
+ description = " Whether to enable DNS hostnames"
303
+ type = bool
304
+ default = true
305
+ }
306
+
307
+ variable "vpc_manage_default_network_acl" {
308
+ description = " Should be true to manage Default Network ACL"
309
+ type = bool
310
+ default = true
311
+ }
312
+
313
+ variable "vpc_flow_log_traffic_type" {
314
+ description = " The type of traffic to capture. Valid values: ACCEPT, REJECT, ALL"
315
+ type = string
316
+ default = " ALL"
317
+ }
318
+
319
+ variable "vpc_flow_log_destination_type" {
320
+ description = " Type of flow log destination. Can be s3 or cloud-watch-logs"
321
+ type = string
322
+ default = " cloud-watch-logs"
323
+ }
324
+
325
+ variable "manage_vpc_default_security_group" {
326
+ description = " Should be true to manage Default Security group of vpc"
327
+ type = bool
328
+ default = true
329
+ }
330
+
331
+ variable "create_database_nat_gateway_route" {
332
+ description = " Nat Gateway route to be created for internet access to database subnets"
333
+ type = bool
334
+ default = false
335
+ }
336
+
337
+ # variable "tags" {
338
+ # description = "The Tags attached with the resources"
339
+ # default = {}
340
+ # type = any
341
+ # }
342
+
343
+ # variable "region" {
344
+ # description = "The AWS region name"
345
+ # type = string
346
+ # default = null
347
+ # }
0 commit comments