Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update constants #981

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/constants/ec2-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@ export const allInstances = [
'c6gd.16xlarge',
'c6gd.metal',
'c6gn.medium',
'c6gn.xlarge',
'c6gn.large',
'c6gn.xlarge',
'c6gn.2xlarge',
'c6gn.4xlarge',
'c6gn.8xlarge',
Expand Down
15 changes: 9 additions & 6 deletions src/constants/regions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ export const allRegions = [
'ap-northeast-3',
'ap-southeast-1',
'ap-southeast-2',
'ap-southeast-3',
'ap-southeast-4',
'ca-west-1',
'us-west-1',
'us-west-2',
'ap-south-1',
'ap-south-2',
'ap-southeast-3',
'ap-southeast-4',
'ap-southeast-5',
'ap-southeast-7',
'ca-central-1',
Expand All @@ -29,6 +29,7 @@ export const allRegions = [
'il-central-1',
'me-central-1',
'me-south-1',
'mx-central-1',
'sa-east-1',
] as const;

Expand All @@ -44,13 +45,13 @@ export const defaultRegions: Region[] = [
'ap-northeast-3',
'ap-southeast-1',
'ap-southeast-2',
// 'ap-southeast-3', // requires opt-in
// 'ap-southeast-4', // requires opt-in
// 'ca-west-1', // requires opt-in
'us-west-1',
'us-west-2',
'ap-south-1',
// 'ap-south-2', // requires opt-in
// 'ap-southeast-3', // requires opt-in
// 'ap-southeast-4', // requires opt-in
// 'ap-southeast-5', // requires opt-in
// 'ap-southeast-7', // requires opt-in
'ca-central-1',
Expand All @@ -65,6 +66,7 @@ export const defaultRegions: Region[] = [
// 'il-central-1', // requires opt-in
// 'me-central-1', // requires opt-in
// 'me-south-1', // requires opt-in
// 'mx-central-1', // requires opt-in
'sa-east-1',
];

Expand All @@ -78,13 +80,13 @@ export const regionNames: Record<Region, string> = {
'ap-northeast-3': 'Asia Pacific (Osaka)',
'ap-southeast-1': 'Asia Pacific (Singapore)',
'ap-southeast-2': 'Asia Pacific (Sydney)',
'ap-southeast-3': 'Asia Pacific (Jakarta)',
'ap-southeast-4': 'Asia Pacific (Melbourne)',
'ca-west-1': 'Canada West (Calgary)',
'us-west-1': 'US West (N. California)',
'us-west-2': 'US West (Oregon)',
'ap-south-1': 'Asia Pacific (Mumbai)',
'ap-south-2': 'Asia Pacific (Hyderabad)',
'ap-southeast-3': 'Asia Pacific (Jakarta)',
'ap-southeast-4': 'Asia Pacific (Melbourne)',
'ap-southeast-5': 'Asia Pacific (Malaysia)',
'ap-southeast-7': 'Asia Pacific (Thailand)',
'ca-central-1': 'Canada (Central)',
Expand All @@ -99,5 +101,6 @@ export const regionNames: Record<Region, string> = {
'il-central-1': 'Israel (Tel Aviv)',
'me-central-1': 'Middle East (UAE)',
'me-south-1': 'Middle East (Bahrain)',
'mx-central-1': 'Mexico (Central)',
'sa-east-1': 'South America (Sao Paulo)',
};
18 changes: 10 additions & 8 deletions test/__snapshots__/cli.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,12 @@ Options:
-r, --region AWS regions.
[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",
"ap-southeast-2", "ap-southeast-3", "ap-southeast-4", "ca-west-1",
"us-west-1", "us-west-2", "ap-south-1", "ap-south-2", "ap-southeast-5",
"ap-southeast-2", "ca-west-1", "us-west-1", "us-west-2", "ap-south-1",
"ap-south-2", "ap-southeast-3", "ap-southeast-4", "ap-southeast-5",
"ap-southeast-7", "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", "il-central-1", "me-central-1", "me-south-1", "sa-east-1"]
"eu-west-3", "il-central-1", "me-central-1", "me-south-1", "mx-central-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.nano", "t2.micro", "t2.small",
Expand Down Expand Up @@ -268,7 +269,7 @@ Options:
"c6g.2xlarge", "c6g.4xlarge", "c6g.8xlarge", "c6g.12xlarge", "c6g.16xlarge",
"c6g.metal", "c6gd.medium", "c6gd.large", "c6gd.xlarge", "c6gd.2xlarge",
"c6gd.4xlarge", "c6gd.8xlarge", "c6gd.12xlarge", "c6gd.16xlarge",
"c6gd.metal", "c6gn.medium", "c6gn.xlarge", "c6gn.large", "c6gn.2xlarge",
"c6gd.metal", "c6gn.medium", "c6gn.large", "c6gn.xlarge", "c6gn.2xlarge",
"c6gn.4xlarge", "c6gn.8xlarge", "c6gn.12xlarge", "c6gn.16xlarge", "c6i.large",
"c6i.xlarge", "c6i.2xlarge", "c6i.4xlarge", "c6i.8xlarge", "c6i.12xlarge",
"c6i.16xlarge", "c6i.24xlarge", "c6i.32xlarge", "c6i.metal", "c6id.large",
Expand Down Expand Up @@ -654,11 +655,12 @@ Options:
-r, --region AWS regions.
[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",
"ap-southeast-2", "ap-southeast-3", "ap-southeast-4", "ca-west-1",
"us-west-1", "us-west-2", "ap-south-1", "ap-south-2", "ap-southeast-5",
"ap-southeast-2", "ca-west-1", "us-west-1", "us-west-2", "ap-south-1",
"ap-south-2", "ap-southeast-3", "ap-southeast-4", "ap-southeast-5",
"ap-southeast-7", "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", "il-central-1", "me-central-1", "me-south-1", "sa-east-1"]
"eu-west-3", "il-central-1", "me-central-1", "me-south-1", "mx-central-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.nano", "t2.micro", "t2.small",
Expand Down Expand Up @@ -727,7 +729,7 @@ Options:
"c6g.2xlarge", "c6g.4xlarge", "c6g.8xlarge", "c6g.12xlarge", "c6g.16xlarge",
"c6g.metal", "c6gd.medium", "c6gd.large", "c6gd.xlarge", "c6gd.2xlarge",
"c6gd.4xlarge", "c6gd.8xlarge", "c6gd.12xlarge", "c6gd.16xlarge",
"c6gd.metal", "c6gn.medium", "c6gn.xlarge", "c6gn.large", "c6gn.2xlarge",
"c6gd.metal", "c6gn.medium", "c6gn.large", "c6gn.xlarge", "c6gn.2xlarge",
"c6gn.4xlarge", "c6gn.8xlarge", "c6gn.12xlarge", "c6gn.16xlarge", "c6i.large",
"c6i.xlarge", "c6i.2xlarge", "c6i.4xlarge", "c6i.8xlarge", "c6i.12xlarge",
"c6i.16xlarge", "c6i.24xlarge", "c6i.32xlarge", "c6i.metal", "c6id.large",
Expand Down
Loading