Skip to content

Commit

Permalink
fix: update constants (#572)
Browse files Browse the repository at this point in the history
Co-authored-by: hoonoh <hoonoh@users.noreply.github.com>
  • Loading branch information
hoonoh and hoonoh committed Nov 17, 2022
1 parent a8e15fc commit 22d011b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
21 changes: 12 additions & 9 deletions src/constants/regions.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
export const allRegions = [
'us-east-1',
'us-east-2',
'us-west-1',
'us-west-2',
'af-south-1',
'ap-east-1',
'ap-northeast-1',
'ap-northeast-2',
'ap-northeast-3',
'ap-south-1',
'ap-southeast-1',
'us-west-1',
'us-west-2',
'ap-south-1',
'ap-southeast-2',
'ap-southeast-3',
'ca-central-1',
'eu-central-1',
'eu-central-2',
'eu-north-1',
'eu-south-1',
'eu-south-2',
'eu-west-1',
'eu-west-2',
'eu-west-3',
Expand All @@ -30,22 +31,23 @@ export type Region = typeof allRegions[number];
export const defaultRegions: Region[] = [
'us-east-1',
'us-east-2',
'us-west-1',
'us-west-2',
// 'af-south-1', // requires opt-in
// 'ap-east-1', // requires opt-in
'ap-northeast-1',
'ap-northeast-2',
'ap-northeast-3',
'ap-south-1',
'ap-southeast-1',
'us-west-1',
'us-west-2',
'ap-south-1',
'ap-southeast-2',
// 'ap-southeast-3', // requires opt-in
'ca-central-1',
'eu-central-1',
// 'eu-central-2', // requires opt-in
'eu-north-1',
// 'eu-south-1', // requires opt-in
// 'eu-south-2', // requires opt-in
'eu-west-1',
'eu-west-2',
'eu-west-3',
Expand All @@ -57,22 +59,23 @@ export const defaultRegions: Region[] = [
export const regionNames: Record<Region, string> = {
'us-east-1': 'US East (N. Virginia)',
'us-east-2': 'US East (Ohio)',
'us-west-1': 'US West (N. California)',
'us-west-2': 'US West (Oregon)',
'af-south-1': 'Africa (Cape Town)',
'ap-east-1': 'Asia Pacific (Hong Kong)',
'ap-northeast-1': 'Asia Pacific (Tokyo)',
'ap-northeast-2': 'Asia Pacific (Seoul)',
'ap-northeast-3': 'Asia Pacific (Osaka)',
'ap-south-1': 'Asia Pacific (Mumbai)',
'ap-southeast-1': 'Asia Pacific (Singapore)',
'us-west-1': 'US West (N. California)',
'us-west-2': 'US West (Oregon)',
'ap-south-1': 'Asia Pacific (Mumbai)',
'ap-southeast-2': 'Asia Pacific (Sydney)',
'ap-southeast-3': 'Asia Pacific (Jakarta)',
'ca-central-1': 'Canada (Central)',
'eu-central-1': 'Europe (Frankfurt)',
'eu-central-2': 'Europe (Zurich)',
'eu-north-1': 'Europe (Stockholm)',
'eu-south-1': 'Europe (Milan)',
'eu-south-2': 'Europe (Spain)',
'eu-west-1': 'Europe (Ireland)',
'eu-west-2': 'Europe (London)',
'eu-west-3': 'Europe (Paris)',
Expand Down
24 changes: 12 additions & 12 deletions test/__snapshots__/cli.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ Options:
--help Show help [boolean]
--ui Start with UI mode [boolean] [default: false]
-r, --region AWS regions.
[array] [choices: "us-east-1", "us-east-2", "us-west-1", "us-west-2",
"af-south-1", "ap-east-1", "ap-northeast-1", "ap-northeast-2",
"ap-northeast-3", "ap-south-1", "ap-southeast-1", "ap-southeast-2",
"ap-southeast-3", "ca-central-1", "eu-central-1", "eu-central-2",
"eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3",
"me-central-1", "me-south-1", "sa-east-1"]
[array] [choices: "us-east-1", "us-east-2", "af-south-1", "ap-east-1",
"ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1",
"us-west-1", "us-west-2", "ap-south-1", "ap-southeast-2", "ap-southeast-3",
"ca-central-1", "eu-central-1", "eu-central-2", "eu-north-1", "eu-south-1",
"eu-south-2", "eu-west-1", "eu-west-2", "eu-west-3", "me-central-1",
"me-south-1", "sa-east-1"]
-i, --instanceType EC2 type
[array] [choices: "a1.medium", "a1.large", "a1.xlarge", "a1.2xlarge",
"a1.4xlarge", "a1.metal", "t1.micro", "t2.micro", "t2.small", "t2.medium",
Expand Down Expand Up @@ -498,12 +498,12 @@ Options:
--help Show help [boolean]
--ui Start with UI mode [boolean] [default: false]
-r, --region AWS regions.
[array] [choices: "us-east-1", "us-east-2", "us-west-1", "us-west-2",
"af-south-1", "ap-east-1", "ap-northeast-1", "ap-northeast-2",
"ap-northeast-3", "ap-south-1", "ap-southeast-1", "ap-southeast-2",
"ap-southeast-3", "ca-central-1", "eu-central-1", "eu-central-2",
"eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3",
"me-central-1", "me-south-1", "sa-east-1"]
[array] [choices: "us-east-1", "us-east-2", "af-south-1", "ap-east-1",
"ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1",
"us-west-1", "us-west-2", "ap-south-1", "ap-southeast-2", "ap-southeast-3",
"ca-central-1", "eu-central-1", "eu-central-2", "eu-north-1", "eu-south-1",
"eu-south-2", "eu-west-1", "eu-west-2", "eu-west-3", "me-central-1",
"me-south-1", "sa-east-1"]
-i, --instanceType EC2 type
[array] [choices: "a1.medium", "a1.large", "a1.xlarge", "a1.2xlarge",
"a1.4xlarge", "a1.metal", "t1.micro", "t2.micro", "t2.small", "t2.medium",
Expand Down

0 comments on commit 22d011b

Please sign in to comment.