-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
250 lines (205 loc) · 6.43 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
variable "region" {
description = "AWS Region"
default = "us-west-2"
}
variable "mgmt_env" {
description = "Environment we are running mgmt in"
default = "mgmt"
}
variable "mgmt_azs" {
type = "list"
description = "A list of availability zones in the region for mgmt"
default = ["us-west-2a", "us-west-2b"]
}
variable "mgmt_cidr" {
description = "The CIDR block for the mgmt VPC."
default = "10.10.0.0/16"
}
variable "mgmt_private_subnets" {
type = "list"
description = "A list of private subnets inside the mgmt PC"
default = ["10.10.1.0/24", "10.10.2.0/24"]
}
variable "mgmt_public_subnets" {
type = "list"
description = "A list of public subnets inside the mgmt VPC"
default = ["10.10.101.0/24", "10.10.102.0/24"]
}
variable "mgmt_create_database_subnet_group" {
description = "Controls if database subnet group should be created"
default = true
}
variable "mgmt_database_subnets" {
type = "list"
description = "A list of database subnets"
default = ["10.10.201.0/24", "10.10.202.0/24"]
}
variable "mgmt_redshift_subnets" {
type = "list"
description = "A list of redshift subnets"
default = []
}
variable "mgmt_elasticache_subnets" {
type = "list"
description = "A list of elasticache subnets"
default = []
}
variable "mgmt_intra_subnets" {
type = "list"
description = "A list of intra subnets"
default = []
}
variable "mgmt_enable_nat_gateway" {
description = "Should be true if you want to provision NAT Gateways for each of your private networks in mgmt"
default = true
}
variable "mgmt_single_nat_gateway" {
description = "Should be true if you want to provision a single shared NAT Gateway across all of your private networks"
default = false
}
variable "mgmt_enable_vpn_gateway" {
description = "Should be true if you want to create a new VPN Gateway resource and attach it to the VPC in mgmt"
default = true
}
variable "bastion_count" {
description = "Number of bastiones (defaults to one per subnet)"
default = false
}
variable "bastion_instance_type" {
description = "instance type for bastion"
default = "t2.nano"
}
variable "create_prod_vpc" {
description = "Controls if prod VPC should be created (it affects almost all resources)"
default = true
}
variable "prod_env" {
description = "Environment we are running prod in"
default = "prod"
}
variable "prod_azs" {
type = "list"
description = "A list of availability zones in the region for prod"
default = ["us-west-2a", "us-west-2b"]
}
variable "prod_cidr" {
description = "The CIDR block for the prod VPC."
default = "10.0.0.0/16"
}
variable "prod_private_subnets" {
type = "list"
description = "A list of private subnets inside the prod PC"
default = ["10.0.1.0/24", "10.0.2.0/24"]
}
variable "prod_public_subnets" {
type = "list"
description = "A list of public subnets inside the prod VPC"
default = ["10.0.101.0/24", "10.0.102.0/24"]
}
variable "prod_create_database_subnet_group" {
description = "Controls if database subnet group should be created"
default = true
}
variable "prod_database_subnets" {
type = "list"
description = "A list of database subnets"
default = ["10.0.201.0/24", "10.0.202.0/24"]
}
variable "prod_redshift_subnets" {
type = "list"
description = "A list of redshift subnets"
default = []
}
variable "prod_elasticache_subnets" {
type = "list"
description = "A list of elasticache subnets"
default = []
}
variable "prod_intra_subnets" {
type = "list"
description = "A list of intra subnets"
default = []
}
variable "prod_enable_nat_gateway" {
description = "Should be true if you want to provision NAT Gateways for each of your private networks in prod"
default = true
}
variable "prod_single_nat_gateway" {
description = "Should be true if you want to provision a single shared NAT Gateway across all of your private networks"
default = false
}
variable "prod_enable_vpn_gateway" {
description = "Should be true if you want to create a new VPN Gateway resource and attach it to the VPC in prod"
default = false
}
variable "create_dev_vpc" {
description = "Controls if dev VPC should be created (it affects almost all resources)"
default = true
}
variable "dev_env" {
description = "Environment we are running dev in"
default = "dev"
}
variable "dev_azs" {
type = "list"
description = "A list of availability zones in the region for dev"
default = ["us-west-2a", "us-west-2b"]
}
variable "dev_cidr" {
description = "The CIDR block for the dev VPC."
default = "10.1.0.0/16"
}
variable "dev_private_subnets" {
type = "list"
description = "A list of private subnets inside the dev PC"
default = ["10.1.1.0/24", "10.1.2.0/24"]
}
variable "dev_public_subnets" {
type = "list"
description = "A list of public subnets inside the dev VPC"
default = ["10.1.101.0/24", "10.1.102.0/24"]
}
variable "dev_create_database_subnet_group" {
description = "Controls if database subnet group should be created"
default = true
}
variable "dev_database_subnets" {
type = "list"
description = "A list of database subnets"
default = ["10.1.201.0/24", "10.1.202.0/24"]
}
variable "dev_redshift_subnets" {
type = "list"
description = "A list of redshift subnets"
default = []
}
variable "dev_elasticache_subnets" {
type = "list"
description = "A list of elasticache subnets"
default = []
}
variable "dev_intra_subnets" {
type = "list"
description = "A list of intra subnets"
default = []
}
variable "dev_enable_nat_gateway" {
description = "Should be true if you want to provision NAT Gateways for each of your private networks in dev"
default = true
}
variable "dev_single_nat_gateway" {
description = "Should be true if you want to provision a single shared NAT Gateway across all of your private networks"
default = false
}
variable "dev_enable_vpn_gateway" {
description = "Should be true if you want to create a new VPN Gateway resource and attach it to the VPC in dev"
default = false
}
variable "map_public_ip_on_launch" {
description = "On public subnets do you want to default to a public IP"
default = false
}
variable "bastion_ami" {
description = "AMI to use for bastion host"
default = "ami-3ecc8f46"
}