This repository was archived by the owner on Feb 27, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvariables.tf
More file actions
147 lines (125 loc) · 3.57 KB
/
variables.tf
File metadata and controls
147 lines (125 loc) · 3.57 KB
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
variable "name" {
description = "Name to be used on all resources as identifier"
type = string
}
variable "tags" {
description = "A map of tags to apply to all resources"
type = map(string)
default = {}
}
variable "vpc_cidr" {
description = "CIDR block for the VPC"
type = string
}
variable "azs" {
description = "List of availability zones to deploy into"
type = list(string)
}
variable "private_subnet_tags" {
description = "Tags to apply to private subnets"
type = map(string)
default = {}
}
variable "public_subnet_tags" {
description = "Tags to apply to public subnets"
type = map(string)
default = {}
}
variable "create_database_subnet_group" {
description = "Create database subnet group"
type = bool
default = true
}
variable "instance_tenancy" {
description = <<-EOD
Tenancy of instances launched into the VPC.
Valid values are "default" or "dedicated".
EKS does not support dedicated tenancy.
EOD
type = string
default = "default"
validation {
condition = contains(["default", "dedicated"], var.instance_tenancy)
error_message = "Value must be either default or dedicated."
}
}
variable "public_subnets" {
description = "List of public subnets inside the VPC"
type = list(string)
default = []
}
variable "private_subnets" {
description = "List of private subnets inside the VPC"
type = list(string)
default = []
}
variable "database_subnets" {
description = "List of database subnets inside the VPC"
type = list(string)
default = []
}
variable "intra_subnets" {
description = "List of intra subnets inside the VPC"
type = list(string)
default = []
}
variable "intra_subnet_tags" {
description = "Tags to apply to intra subnets"
type = map(string)
default = {}
}
variable "enable_nat_gateway" {
description = "Enable NAT gateway"
type = bool
default = false
}
variable "single_nat_gateway" {
description = "Use a single NAT gateway for all private subnets"
type = bool
default = true
}
variable "secondary_cidr_blocks" {
description = "List of secondary CIDR blocks for the VPC"
type = list(string)
default = []
}
variable "vpc_flow_log_permissions_boundary" {
description = "The ARN of the Permissions Boundary for the VPC Flow Log IAM Role"
type = string
default = null
}
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 = 365
}
variable "flow_log_log_format" {
description = "The fields to include in the flow log record, in the order in which they should appear"
type = string
default = null
}
variable "ip_offsets_per_subnet" {
description = "List of offsets for IP reservations in each subnet."
type = list(list(number))
default = null
}
variable "create_default_vpc_endpoints" {
description = "Creates a default set of VPC endpoints."
type = bool
default = true
}
variable "ecr_endpoint_policy" {
description = "Policy to attach to the ECR endpoint. Defaults to *."
type = string
default = null
}
variable "enable_fips_vpce" {
description = "Enable FIPS endpoints for VPC endpoints."
type = bool
default = false
}
variable "enable_ses_vpce" {
description = "Enable Simple Email Service endpoints for the VPC endpoints."
type = bool
default = true
}