-
Notifications
You must be signed in to change notification settings - Fork 5
/
variables.tf
232 lines (194 loc) · 5.46 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
variable "create_vpc" {
description = "Controls if VPC should be created (it affects almost all resources)"
type = bool
default = "true"
}
variable "create_route53_zone" {
default = "false"
description = "Switch to create Route53 zone"
}
variable "root_domain" {
type = string
default = ""
description = "Name of Route53 zone (if 'create_route53_zone' = True)"
}
variable "project" {
type = string
default = "project"
description = "Project name is used to identify resources"
}
variable "environment" {
type = string
default = "env"
description = "Environment name is used to identify resources"
}
variable "availability_zones" {
type = list(string)
default = []
description = "A list of availability zones in the region"
}
variable "vpc_cidr" {
default = "0.0.0.0/16"
description = "The CIDR block for the VPC. Default value is a valid CIDR, but not acceptable by AWS and should be overridden"
}
variable "private_subnets" {
type = list(string)
default = []
description = "A list of private subnets inside the VPC"
}
variable "public_subnets" {
type = list(string)
default = []
description = "A list of public subnets inside the VPC"
}
variable "enable_nat_gateway" {
default = "false"
description = "Should be true if you want to provision NAT Gateways for each of your private networks"
}
variable "enable_vpn_gateway" {
default = "false"
description = "Should be true if you want to create and attach virtual private gateway for your vpc"
}
variable "amazon_side_asn" {
default = "64512"
description = "The Autonomous System Number (ASN) for the Amazon side of the gateway. By default the virtual private gateway is created with the current default Amazon ASN."
}
variable "single_nat_gateway" {
default = "false"
description = "Should be true if you want to provision a single shared NAT Gateway across all of your private networks"
}
variable "map_public_ip_on_launch" {
default = "true"
description = "Should be false if you do not want to auto-assign public IP on launch"
}
variable "tags" {
type = map(string)
default = {}
description = "Additional tags for resources"
}
variable "nat_as_ec2_instance" {
description = "Setup NAT as EC2 instance instead of service"
default = "false"
}
variable "instance_type" {
description = "The type of instance to start"
default = "t3.nano"
}
variable "enable_dns_support" {
description = "Should be true to enable DNS support in the VPC"
default = "true"
}
variable "enable_dns_hostnames" {
description = "Should be true to enable DNS hostnames in the VPC"
default = "false"
}
variable "database_subnets" {
description = "A list of database subnets"
default = []
}
variable "database_subnet_tags" {
description = "Additional tags for the database subnets"
default = {}
}
variable "database_subnet_suffix" {
description = "Suffix to append to database subnets name"
default = "db"
}
variable "create_database_subnet_group" {
description = "Controls if database subnet group should be created"
default = true
}
variable "database_subnet_group_tags" {
description = "Additional tags for the database subnet group"
default = {}
}
variable "public_dedicated_network_acl" {
description = "Whether to use dedicated network ACL (not default) and custom rules for public subnets"
default = false
}
variable "private_dedicated_network_acl" {
description = "Whether to use dedicated network ACL (not default) and custom rules for private subnets"
default = false
}
variable "database_dedicated_network_acl" {
description = "Whether to use dedicated network ACL (not default) and custom rules for database subnets"
default = false
}
variable "public_inbound_acl_rules" {
description = "Public subnets inbound network ACLs"
default = [
{
rule_number = 100
rule_action = "allow"
from_port = 0
to_port = 0
protocol = "-1"
cidr_block = "0.0.0.0/0"
},
]
}
variable "public_outbound_acl_rules" {
description = "Public subnets outbound network ACLs"
default = [
{
rule_number = 100
rule_action = "allow"
from_port = 0
to_port = 0
protocol = "-1"
cidr_block = "0.0.0.0/0"
},
]
}
variable "private_inbound_acl_rules" {
description = "Private subnets inbound network ACLs"
default = [
{
rule_number = 100
rule_action = "allow"
from_port = 0
to_port = 0
protocol = "-1"
cidr_block = "0.0.0.0/0"
},
]
}
variable "private_outbound_acl_rules" {
description = "Private subnets outbound network ACLs"
default = [
{
rule_number = 100
rule_action = "allow"
from_port = 0
to_port = 0
protocol = "-1"
cidr_block = "0.0.0.0/0"
},
]
}
variable "database_inbound_acl_rules" {
description = "Database subnets inbound network ACL rules"
default = [
{
rule_number = 100
rule_action = "allow"
from_port = 0
to_port = 0
protocol = "-1"
cidr_block = "0.0.0.0/0"
},
]
}
variable "database_outbound_acl_rules" {
description = "Database subnets outbound network ACL rules"
default = [
{
rule_number = 100
rule_action = "allow"
from_port = 0
to_port = 0
protocol = "-1"
cidr_block = "0.0.0.0/0"
},
]
}