Skip to content

Commit 0bc6778

Browse files
committed
terraform/AWS: Add the northern Asia-Pacific regions and their AV zones
For Japanese and Korean kdevops users. Signed-off-by: Chuck Lever <[email protected]>
1 parent b109abb commit 0bc6778

File tree

1 file changed

+111
-0
lines changed

1 file changed

+111
-0
lines changed

terraform/aws/kconfigs/Kconfig.location

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,24 @@ choice
5050
aws ec2 describe-images --image-ids ami-0699f753302dd8b00 | grep OwnerId
5151
"OwnerId": "137112412989",
5252

53+
config TERRAFORM_AWS_REGION_AP_NORTHEAST_1
54+
bool "ap-northeast-1 - Tokyo"
55+
help
56+
This option specifies the Asia-Pacific northeast-1 region.
57+
The data center is located in Tokyo, Japan.
58+
59+
config TERRAFORM_AWS_REGION_AP_NORTHEAST_2
60+
bool "ap-northeast-2 - Seoul"
61+
help
62+
This option specifies the Asia-Pacific northeast-2 region.
63+
The data center is located in Seoul, South Korea.
64+
65+
config TERRAFORM_AWS_REGION_AP_NORTHEAST_3
66+
bool "ap-northeast-3 - Osaka"
67+
help
68+
This option specifies the Asia-Pacific northeast-3 region.
69+
The data center is located in Osaka, Japan.
70+
5371
config TERRAFORM_AWS_REGION_CA_CENTRAL_1
5472
bool "ca-central-1 - Central"
5573
help
@@ -124,6 +142,9 @@ endchoice
124142
config TERRAFORM_AWS_REGION
125143
string
126144
output yaml
145+
default "ap-northeast-1" if TERRAFORM_AWS_REGION_AP_NORTHEAST_1
146+
default "ap-northeast-2" if TERRAFORM_AWS_REGION_AP_NORTHEAST_2
147+
default "ap-northeast-3" if TERRAFORM_AWS_REGION_AP_NORTHEAST_3
127148
default "ca-central-1" if TERRAFORM_AWS_REGION_CA_CENTRAL_1
128149
default "eu-central-1" if TERRAFORM_AWS_REGION_EU_CENTRAL_1
129150
default "eu-north-1" if TERRAFORM_AWS_REGION_EU_NORTH_1
@@ -136,6 +157,86 @@ config TERRAFORM_AWS_REGION
136157
default "us-west-1" if TERRAFORM_AWS_REGION_US_WEST_1
137158
default "us-west-2" if TERRAFORM_AWS_REGION_US_WEST_2
138159

160+
if TERRAFORM_AWS_REGION_AP_NORTHEAST_1
161+
162+
choice
163+
prompt "AWS availability zone"
164+
default TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_1A
165+
166+
config TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_1A
167+
bool "ap-northeast-1a"
168+
help
169+
This option selects the ap-northeast-1a availability zone.
170+
171+
config TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_1C
172+
bool "ap-northeast-1c"
173+
help
174+
This option selects the ap-northeast-1c availability zone.
175+
176+
config TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_1D
177+
bool "ap-northeast-1d"
178+
help
179+
This option selects the ap-northeast-1d availability zone.
180+
181+
endchoice
182+
183+
endif # TERRAFORM_AWS_REGION_AP_NORTHEAST_1
184+
185+
if TERRAFORM_AWS_REGION_AP_NORTHEAST_2
186+
187+
choice
188+
prompt "AWS availability zone"
189+
default TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_2A
190+
191+
config TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_2A
192+
bool "ap-northeast-2a"
193+
help
194+
This option selects the ap-northeast-2a availability zone.
195+
196+
config TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_2B
197+
bool "ap-northeast-2b"
198+
help
199+
This option selects the ap-northeast-2b availability zone.
200+
201+
config TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_2C
202+
bool "ap-northeast-2c"
203+
help
204+
This option selects the ap-northeast-2c availability zone.
205+
206+
config TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_2D
207+
bool "ap-northeast-2d"
208+
help
209+
This option selects the ap-northeast-2d availability zone.
210+
211+
endchoice
212+
213+
endif # TERRAFORM_AWS_REGION_AP_NORTHEAST_2
214+
215+
if TERRAFORM_AWS_REGION_AP_NORTHEAST_3
216+
217+
choice
218+
prompt "AWS availability zone"
219+
default TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_3A
220+
221+
config TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_3A
222+
bool "ap-northeast-3a"
223+
help
224+
This option selects the ap-northeast-3a availability zone.
225+
226+
config TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_3B
227+
bool "ap-northeast-3b"
228+
help
229+
This option selects the ap-northeast-3b availability zone.
230+
231+
config TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_3C
232+
bool "ap-northeast-3c"
233+
help
234+
This option selects the ap-northeast-3c availability zone.
235+
236+
endchoice
237+
238+
endif # TERRAFORM_AWS_REGION_AP_NORTHEAST_3
239+
139240
if TERRAFORM_AWS_REGION_CA_CENTRAL_1
140241

141242
choice
@@ -411,6 +512,16 @@ endif # TERRAFORM_AWS_REGION_US_WEST_2
411512
config TERRAFORM_AWS_AV_ZONE
412513
string
413514
output yaml
515+
default "ap-northeast-1a" if TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_1A
516+
default "ap-northeast-1c" if TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_1C
517+
default "ap-northeast-1d" if TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_1D
518+
default "ap-northeast-2a" if TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_2A
519+
default "ap-northeast-2b" if TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_2B
520+
default "ap-northeast-2c" if TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_2C
521+
default "ap-northeast-2d" if TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_2D
522+
default "ap-northeast-3a" if TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_3A
523+
default "ap-northeast-3b" if TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_3B
524+
default "ap-northeast-3c" if TERRAFORM_AWS_AV_ZONE_AP_NORTHEAST_3C
414525
default "ca-central-1a" if TERRAFORM_AWS_AV_ZONE_CA_CENTRAL_1A
415526
default "ca-central-1b" if TERRAFORM_AWS_AV_ZONE_CA_CENTRAL_1B
416527
default "ca-central-1d" if TERRAFORM_AWS_AV_ZONE_CA_CENTRAL_1D

0 commit comments

Comments
 (0)