Skip to content

Commit b109abb

Browse files
committed
terraform/AWS: Add the common EU regions and their AV zones
Signed-off-by: Chuck Lever <[email protected]>
1 parent 39be34b commit b109abb

File tree

1 file changed

+175
-0
lines changed

1 file changed

+175
-0
lines changed

terraform/aws/kconfigs/Kconfig.location

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,36 @@ config TERRAFORM_AWS_REGION_CA_CENTRAL_1
5656
This option specifies the Canada central-1 region.
5757
The data center is located in Montreal, Quebec.
5858

59+
config TERRAFORM_AWS_REGION_EU_CENTRAL_1
60+
bool "eu-central-1 - Frankfurt"
61+
help
62+
This option specifies the European Union central-1 region.
63+
The data center is located in Frankfurt, Germany.
64+
65+
config TERRAFORM_AWS_REGION_EU_NORTH_1
66+
bool "eu-north-1 - Stockholm"
67+
help
68+
This option specifies the European Union north-1 region.
69+
The data center is located in Stockholm, Sweden.
70+
71+
config TERRAFORM_AWS_REGION_EU_WEST_1
72+
bool "eu-west-1 - Ireland"
73+
help
74+
This option specifies the European Union west-1 region.
75+
The data center is located in Dublin, Republic of Ireland.
76+
77+
config TERRAFORM_AWS_REGION_EU_WEST_2
78+
bool "eu-west-2 - London"
79+
help
80+
This option specifies the European Union west-2 region.
81+
The data center is located in London, United Kingdom.
82+
83+
config TERRAFORM_AWS_REGION_EU_WEST_3
84+
bool "eu-west-3 - Paris"
85+
help
86+
This option specifies the European Union west-3 region.
87+
The data center is located in Paris, France.
88+
5989
config TERRAFORM_AWS_REGION_SA_EAST_1
6090
bool "sa-east-1 - Sao Paulo"
6191
help
@@ -95,6 +125,11 @@ config TERRAFORM_AWS_REGION
95125
string
96126
output yaml
97127
default "ca-central-1" if TERRAFORM_AWS_REGION_CA_CENTRAL_1
128+
default "eu-central-1" if TERRAFORM_AWS_REGION_EU_CENTRAL_1
129+
default "eu-north-1" if TERRAFORM_AWS_REGION_EU_NORTH_1
130+
default "eu-west-1" if TERRAFORM_AWS_REGION_EU_WEST_1
131+
default "eu-west-2" if TERRAFORM_AWS_REGION_EU_WEST_2
132+
default "eu-west-3" if TERRAFORM_AWS_REGION_EU_WEST_3
98133
default "sa-east-1" if TERRAFORM_AWS_REGION_SA_EAST_1
99134
default "us-east-1" if TERRAFORM_AWS_REGION_US_EAST_1
100135
default "us-east-2" if TERRAFORM_AWS_REGION_US_EAST_2
@@ -126,6 +161,131 @@ endchoice
126161

127162
endif # TERRAFORM_AWS_REGION_CA_CENTRAL_1
128163

164+
if TERRAFORM_AWS_REGION_EU_CENTRAL_1
165+
166+
choice
167+
prompt "AWS availability zone"
168+
default TERRAFORM_AWS_AV_ZONE_EU_CENTRAL_1A
169+
170+
config TERRAFORM_AWS_AV_ZONE_EU_CENTRAL_1A
171+
bool "eu-central-1a"
172+
help
173+
This option selects the eu-central-1a availability zone.
174+
175+
config TERRAFORM_AWS_AV_ZONE_EU_CENTRAL_1B
176+
bool "eu-central-1b"
177+
help
178+
This option selects the eu-central-1b availability zone.
179+
180+
config TERRAFORM_AWS_AV_ZONE_EU_CENTRAL_1C
181+
bool "eu-central-1c"
182+
help
183+
This option selects the eu-central-1c availability zone.
184+
185+
endchoice
186+
187+
endif # TERRAFORM_AWS_REGION_EU_CENTRAL_1
188+
189+
if TERRAFORM_AWS_REGION_EU_NORTH_1
190+
191+
choice
192+
prompt "AWS availability zone"
193+
default TERRAFORM_AWS_AV_ZONE_EU_NORTH_1A
194+
195+
config TERRAFORM_AWS_AV_ZONE_EU_NORTH_1A
196+
bool "eu-north-1a"
197+
help
198+
This option selects the eu-north-1a availability zone.
199+
200+
config TERRAFORM_AWS_AV_ZONE_EU_NORTH_1B
201+
bool "eu-north-1b"
202+
help
203+
This option selects the eu-north-1b availability zone.
204+
205+
config TERRAFORM_AWS_AV_ZONE_EU_NORTH_1C
206+
bool "eu-north-1c"
207+
help
208+
This option selects the eu-north-1c availability zone.
209+
210+
endchoice
211+
212+
endif # TERRAFORM_AWS_REGION_EU_NORTH_1
213+
214+
if TERRAFORM_AWS_REGION_EU_WEST_1
215+
216+
choice
217+
prompt "AWS availability zone"
218+
default TERRAFORM_AWS_AV_ZONE_EU_WEST_1A
219+
220+
config TERRAFORM_AWS_AV_ZONE_EU_WEST_1A
221+
bool "eu-west-1a"
222+
help
223+
This option selects the eu-west-1a availability zone.
224+
225+
config TERRAFORM_AWS_AV_ZONE_EU_WEST_1B
226+
bool "eu-west-1b"
227+
help
228+
This option selects the eu-west-1b availability zone.
229+
230+
config TERRAFORM_AWS_AV_ZONE_EU_WEST_1C
231+
bool "eu-west-1c"
232+
help
233+
This option selects the eu-west-1c availability zone.
234+
235+
endchoice
236+
237+
endif # TERRAFORM_AWS_REGION_EU_WEST_1
238+
239+
if TERRAFORM_AWS_REGION_EU_WEST_2
240+
241+
choice
242+
prompt "AWS availability zone"
243+
default TERRAFORM_AWS_AV_ZONE_EU_WEST_2A
244+
245+
config TERRAFORM_AWS_AV_ZONE_EU_WEST_2A
246+
bool "eu-west-2a"
247+
help
248+
This option selects the eu-west-2a availability zone.
249+
250+
config TERRAFORM_AWS_AV_ZONE_EU_WEST_2B
251+
bool "eu-west-2b"
252+
help
253+
This option selects the eu-west-2b availability zone.
254+
255+
config TERRAFORM_AWS_AV_ZONE_EU_WEST_2C
256+
bool "eu-west-2c"
257+
help
258+
This option selects the eu-west-2c availability zone.
259+
260+
endchoice
261+
262+
endif # TERRAFORM_AWS_REGION_EU_WEST_2
263+
264+
if TERRAFORM_AWS_REGION_EU_WEST_3
265+
266+
choice
267+
prompt "AWS availability zone"
268+
default TERRAFORM_AWS_AV_ZONE_EU_WEST_3A
269+
270+
config TERRAFORM_AWS_AV_ZONE_EU_WEST_3A
271+
bool "eu-west-3a"
272+
help
273+
This option selects the eu-west-3a availability zone.
274+
275+
config TERRAFORM_AWS_AV_ZONE_EU_WEST_3B
276+
bool "eu-west-3b"
277+
help
278+
This option selects the eu-west-3b availability zone.
279+
280+
config TERRAFORM_AWS_AV_ZONE_EU_WEST_3C
281+
bool "eu-west-3c"
282+
help
283+
This option selects the eu-west-3c availability zone.
284+
285+
endchoice
286+
287+
endif # TERRAFORM_AWS_REGION_EU_WEST_3
288+
129289
if TERRAFORM_AWS_REGION_SA_EAST_1
130290

131291
choice
@@ -254,6 +414,21 @@ config TERRAFORM_AWS_AV_ZONE
254414
default "ca-central-1a" if TERRAFORM_AWS_AV_ZONE_CA_CENTRAL_1A
255415
default "ca-central-1b" if TERRAFORM_AWS_AV_ZONE_CA_CENTRAL_1B
256416
default "ca-central-1d" if TERRAFORM_AWS_AV_ZONE_CA_CENTRAL_1D
417+
default "eu-central-1a" if TERRAFORM_AWS_AV_ZONE_EU_CENTRAL_1A
418+
default "eu-central-1b" if TERRAFORM_AWS_AV_ZONE_EU_CENTRAL_1B
419+
default "eu-central-1c" if TERRAFORM_AWS_AV_ZONE_EU_CENTRAL_1C
420+
default "eu-north-1a" if TERRAFORM_AWS_AV_ZONE_EU_NORTH_1A
421+
default "eu-north-1b" if TERRAFORM_AWS_AV_ZONE_EU_NORTH_1B
422+
default "eu-north-1c" if TERRAFORM_AWS_AV_ZONE_EU_NORTH_1C
423+
default "eu-west-1a" if TERRAFORM_AWS_AV_ZONE_EU_WEST_1A
424+
default "eu-west-1b" if TERRAFORM_AWS_AV_ZONE_EU_WEST_1B
425+
default "eu-west-1c" if TERRAFORM_AWS_AV_ZONE_EU_WEST_1C
426+
default "eu-west-2a" if TERRAFORM_AWS_AV_ZONE_EU_WEST_2A
427+
default "eu-west-2b" if TERRAFORM_AWS_AV_ZONE_EU_WEST_2B
428+
default "eu-west-2c" if TERRAFORM_AWS_AV_ZONE_EU_WEST_2C
429+
default "eu-west-3a" if TERRAFORM_AWS_AV_ZONE_EU_WEST_3A
430+
default "eu-west-3b" if TERRAFORM_AWS_AV_ZONE_EU_WEST_3B
431+
default "eu-west-3c" if TERRAFORM_AWS_AV_ZONE_EU_WEST_3C
257432
default "sa-east-1a" if TERRAFORM_AWS_AV_ZONE_SA_EAST_1A
258433
default "sa-east-1b" if TERRAFORM_AWS_AV_ZONE_SA_EAST_1B
259434
default "sa-east-1c" if TERRAFORM_AWS_AV_ZONE_SA_EAST_1C

0 commit comments

Comments
 (0)