Skip to content

Commit ddb9dc2

Browse files
authored
Add files via upload
1 parent 1bd9028 commit ddb9dc2

File tree

1 file changed

+90
-26
lines changed

1 file changed

+90
-26
lines changed

variables.tf

Lines changed: 90 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
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+
123
variable "environment" {
224
description = "Specify the environment indentifier for the VPC"
325
type = string
@@ -17,31 +39,31 @@ variable "vpc_cidr" {
1739
type = string
1840
}
1941

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."
2244
default = []
2345
type = list(any)
2446
}
2547

26-
variable "public_subnet_enabled" {
48+
variable "vpc_public_subnet_enabled" {
2749
description = "Set true to enable public subnets"
2850
default = false
2951
type = bool
3052
}
3153

32-
variable "public_subnet_cidrs" {
54+
variable "vpc_public_subnet_cidrs" {
3355
description = "A list of public subnets CIDR to be created inside the VPC"
3456
default = []
3557
type = list(any)
3658
}
3759

38-
variable "private_subnet_enabled" {
60+
variable "vpc_private_subnet_enabled" {
3961
description = "Set true to enable private subnets"
4062
default = false
4163
type = bool
4264
}
4365

44-
variable "private_subnet_cidrs" {
66+
variable "vpc_private_subnet_cidrs" {
4567
description = "A list of private subnets CIDR to be created inside the VPC"
4668
default = []
4769
type = list(any)
@@ -59,13 +81,13 @@ variable "database_subnet_cidrs" {
5981
type = list(any)
6082
}
6183

62-
variable "intra_subnet_enabled" {
84+
variable "vpc_intra_subnet_enabled" {
6385
description = "Set true to enable intra subnets"
6486
default = false
6587
type = bool
6688
}
6789

68-
variable "intra_subnet_cidrs" {
90+
variable "vpc_intra_subnet_cidrs" {
6991
description = "A list of intra subnets CIDR to be created"
7092
default = []
7193
type = list(any)
@@ -129,25 +151,25 @@ variable "default_network_acl_ingress" {
129151
]
130152
}
131153

132-
variable "one_nat_gateway_per_az" {
154+
variable "vpc_one_nat_gateway_per_az" {
133155
description = "Set to true if a NAT Gateway is required per availability zone for Private Subnet Tier"
134156
default = false
135157
type = bool
136158
}
137159

138-
variable "flow_log_enabled" {
160+
variable "vpc_flow_log_enabled" {
139161
description = "Whether or not to enable VPC Flow Logs"
140162
type = bool
141163
default = false
142164
}
143165

144-
variable "flow_log_cloudwatch_log_group_retention_in_days" {
166+
variable "vpc_flow_log_cloudwatch_log_group_retention_in_days" {
145167
description = "Specifies the number of days you want to retain log events in the specified log group for VPC flow logs."
146168
type = number
147169
default = null
148170
}
149171

150-
variable "flow_log_max_aggregation_interval" {
172+
variable "vpc_flow_log_max_aggregation_interval" {
151173
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."
152174
type = number
153175
default = 60
@@ -216,18 +238,12 @@ variable "secondry_cidr_enabled" {
216238
type = bool
217239
}
218240

219-
variable "enable_database_subnet_group" {
241+
variable "database_subnet_group_enabled" {
220242
description = "Whether create database subnet groups"
221243
default = false
222244
type = bool
223245
}
224246

225-
# variable "tags" {
226-
# description = "The Tags attached with the resources"
227-
# default = {}
228-
# type = any
229-
# }
230-
231247
variable "ipam_pool_id" {
232248
description = "The existing IPAM pool id if any"
233249
default = null
@@ -252,19 +268,13 @@ variable "ipv4_netmask_length" {
252268
type = number
253269
}
254270

255-
variable "region" {
256-
description = "The AWS region name"
257-
type = string
258-
default = null
259-
}
260-
261271
variable "existing_ipam_managed_cidr" {
262272
description = "The existing IPAM pool CIDR"
263273
default = ""
264274
type = string
265275
}
266276

267-
variable "flow_log_cloudwatch_log_group_skip_destroy" {
277+
variable "vpc_flow_log_cloudwatch_log_group_skip_destroy" {
268278
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"
269279
type = bool
270280
default = false
@@ -281,3 +291,57 @@ variable "vpc_ecr_endpoint_enabled" {
281291
type = bool
282292
default = false
283293
}
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

Comments
 (0)