Skip to content

Commit

Permalink
fix: update constants (#368)
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 authored Aug 17, 2021
1 parent c44f417 commit b7ce406
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 42 deletions.
9 changes: 9 additions & 0 deletions src/constants/ec2-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,15 @@ export const ec2Info: Record<InstanceType | string, Ec2InstanceInfo> = {
'm6gd.medium': { vCpu: 1, memoryGiB: 4 },
'm6gd.metal': { vCpu: 64, memoryGiB: 256 },
'm6gd.xlarge': { vCpu: 4, memoryGiB: 16 },
'm6i.12xlarge': { vCpu: 48, memoryGiB: 192 },
'm6i.16xlarge': { vCpu: 64, memoryGiB: 256 },
'm6i.24xlarge': { vCpu: 96, memoryGiB: 384 },
'm6i.2xlarge': { vCpu: 8, memoryGiB: 32 },
'm6i.32xlarge': { vCpu: 128, memoryGiB: 512 },
'm6i.4xlarge': { vCpu: 16, memoryGiB: 64 },
'm6i.8xlarge': { vCpu: 32, memoryGiB: 128 },
'm6i.large': { vCpu: 2, memoryGiB: 8 },
'm6i.xlarge': { vCpu: 4, memoryGiB: 16 },
'mac1.metal': { vCpu: 12, memoryGiB: 32 },
'p2.16xlarge': { vCpu: 64, memoryGiB: 732 },
'p2.8xlarge': { vCpu: 32, memoryGiB: 488 },
Expand Down
10 changes: 10 additions & 0 deletions src/constants/ec2-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const instanceFamilyGeneral = [
'm5zn',
'm6g',
'm6gd',
'm6i',
] as const;

export const instanceFamilyCompute = [
Expand Down Expand Up @@ -241,6 +242,15 @@ export const allInstances = [
'm6gd.12xlarge',
'm6gd.16xlarge',
'm6gd.metal',
'm6i.large',
'm6i.xlarge',
'm6i.2xlarge',
'm6i.4xlarge',
'm6i.8xlarge',
'm6i.12xlarge',
'm6i.16xlarge',
'm6i.24xlarge',
'm6i.32xlarge',
'c1.medium',
'c1.xlarge',
'c3.large',
Expand Down
88 changes: 46 additions & 42 deletions test/__snapshots__/cli.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -192,22 +192,24 @@ Options:
\\"m6g.xlarge\\", \\"m6g.2xlarge\\", \\"m6g.4xlarge\\", \\"m6g.8xlarge\\", \\"m6g.12xlarge\\",
\\"m6g.16xlarge\\", \\"m6g.metal\\", \\"m6gd.medium\\", \\"m6gd.large\\", \\"m6gd.xlarge\\",
\\"m6gd.2xlarge\\", \\"m6gd.4xlarge\\", \\"m6gd.8xlarge\\", \\"m6gd.12xlarge\\",
\\"m6gd.16xlarge\\", \\"m6gd.metal\\", \\"c1.medium\\", \\"c1.xlarge\\", \\"c3.large\\",
\\"c3.xlarge\\", \\"c3.2xlarge\\", \\"c3.4xlarge\\", \\"c3.8xlarge\\", \\"c4.large\\",
\\"c4.xlarge\\", \\"c4.2xlarge\\", \\"c4.4xlarge\\", \\"c4.8xlarge\\", \\"c5.large\\",
\\"c5.xlarge\\", \\"c5.2xlarge\\", \\"c5.4xlarge\\", \\"c5.9xlarge\\", \\"c5.12xlarge\\",
\\"c5.18xlarge\\", \\"c5.24xlarge\\", \\"c5.metal\\", \\"c5a.large\\", \\"c5a.xlarge\\",
\\"c5a.2xlarge\\", \\"c5a.4xlarge\\", \\"c5a.8xlarge\\", \\"c5a.12xlarge\\", \\"c5a.16xlarge\\",
\\"c5a.24xlarge\\", \\"c5ad.large\\", \\"c5ad.xlarge\\", \\"c5ad.2xlarge\\", \\"c5ad.4xlarge\\",
\\"c5ad.8xlarge\\", \\"c5ad.12xlarge\\", \\"c5ad.16xlarge\\", \\"c5ad.24xlarge\\",
\\"c5d.large\\", \\"c5d.xlarge\\", \\"c5d.2xlarge\\", \\"c5d.4xlarge\\", \\"c5d.9xlarge\\",
\\"c5d.12xlarge\\", \\"c5d.18xlarge\\", \\"c5d.24xlarge\\", \\"c5d.metal\\", \\"c5n.large\\",
\\"c5n.xlarge\\", \\"c5n.2xlarge\\", \\"c5n.4xlarge\\", \\"c5n.9xlarge\\", \\"c5n.18xlarge\\",
\\"c5n.metal\\", \\"c6g.medium\\", \\"c6g.large\\", \\"c6g.xlarge\\", \\"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.large\\", \\"c6gn.xlarge\\", \\"c6gn.2xlarge\\", \\"c6gn.4xlarge\\", \\"c6gn.8xlarge\\",
\\"m6gd.16xlarge\\", \\"m6gd.metal\\", \\"m6i.large\\", \\"m6i.xlarge\\", \\"m6i.2xlarge\\",
\\"m6i.4xlarge\\", \\"m6i.8xlarge\\", \\"m6i.12xlarge\\", \\"m6i.16xlarge\\", \\"m6i.24xlarge\\",
\\"m6i.32xlarge\\", \\"c1.medium\\", \\"c1.xlarge\\", \\"c3.large\\", \\"c3.xlarge\\",
\\"c3.2xlarge\\", \\"c3.4xlarge\\", \\"c3.8xlarge\\", \\"c4.large\\", \\"c4.xlarge\\",
\\"c4.2xlarge\\", \\"c4.4xlarge\\", \\"c4.8xlarge\\", \\"c5.large\\", \\"c5.xlarge\\",
\\"c5.2xlarge\\", \\"c5.4xlarge\\", \\"c5.9xlarge\\", \\"c5.12xlarge\\", \\"c5.18xlarge\\",
\\"c5.24xlarge\\", \\"c5.metal\\", \\"c5a.large\\", \\"c5a.xlarge\\", \\"c5a.2xlarge\\",
\\"c5a.4xlarge\\", \\"c5a.8xlarge\\", \\"c5a.12xlarge\\", \\"c5a.16xlarge\\", \\"c5a.24xlarge\\",
\\"c5ad.large\\", \\"c5ad.xlarge\\", \\"c5ad.2xlarge\\", \\"c5ad.4xlarge\\", \\"c5ad.8xlarge\\",
\\"c5ad.12xlarge\\", \\"c5ad.16xlarge\\", \\"c5ad.24xlarge\\", \\"c5d.large\\", \\"c5d.xlarge\\",
\\"c5d.2xlarge\\", \\"c5d.4xlarge\\", \\"c5d.9xlarge\\", \\"c5d.12xlarge\\", \\"c5d.18xlarge\\",
\\"c5d.24xlarge\\", \\"c5d.metal\\", \\"c5n.large\\", \\"c5n.xlarge\\", \\"c5n.2xlarge\\",
\\"c5n.4xlarge\\", \\"c5n.9xlarge\\", \\"c5n.18xlarge\\", \\"c5n.metal\\", \\"c6g.medium\\",
\\"c6g.large\\", \\"c6g.xlarge\\", \\"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.large\\",
\\"c6gn.xlarge\\", \\"c6gn.2xlarge\\", \\"c6gn.4xlarge\\", \\"c6gn.8xlarge\\",
\\"c6gn.12xlarge\\", \\"c6gn.16xlarge\\", \\"r3.large\\", \\"r3.xlarge\\", \\"r3.2xlarge\\",
\\"r3.4xlarge\\", \\"r3.8xlarge\\", \\"r4.large\\", \\"r4.xlarge\\", \\"r4.2xlarge\\",
\\"r4.4xlarge\\", \\"r4.8xlarge\\", \\"r4.16xlarge\\", \\"r5.large\\", \\"r5.xlarge\\",
Expand Down Expand Up @@ -252,11 +254,11 @@ Options:
\\"acceleratedComputing\\"]
-f, --familyType EC2 instance family types.
[array] [choices: \\"a1\\", \\"t1\\", \\"t2\\", \\"t3\\", \\"t3a\\", \\"t4g\\", \\"m1\\", \\"m2\\", \\"m3\\",
\\"m4\\", \\"m5\\", \\"m5a\\", \\"m5ad\\", \\"m5d\\", \\"m5dn\\", \\"m5n\\", \\"m5zn\\", \\"m6g\\", \\"m6gd\\", \\"c1\\",
\\"c3\\", \\"c4\\", \\"c5\\", \\"c5a\\", \\"c5ad\\", \\"c5d\\", \\"c5n\\", \\"c6g\\", \\"c6gd\\", \\"c6gn\\", \\"r3\\",
\\"r4\\", \\"r5\\", \\"r5a\\", \\"r5ad\\", \\"r5b\\", \\"r5d\\", \\"r5dn\\", \\"r5n\\", \\"r6g\\", \\"r6gd\\", \\"x1\\",
\\"x1e\\", \\"x2gd\\", \\"z1d\\", \\"d2\\", \\"d3\\", \\"d3en\\", \\"h1\\", \\"i2\\", \\"i3\\", \\"i3en\\", \\"f1\\",
\\"g2\\", \\"g3\\", \\"g3s\\", \\"g4ad\\", \\"g4dn\\", \\"inf1\\", \\"p2\\", \\"p3\\", \\"p3dn\\", \\"p4d\\"]
\\"m4\\", \\"m5\\", \\"m5a\\", \\"m5ad\\", \\"m5d\\", \\"m5dn\\", \\"m5n\\", \\"m5zn\\", \\"m6g\\", \\"m6gd\\", \\"m6i\\",
\\"c1\\", \\"c3\\", \\"c4\\", \\"c5\\", \\"c5a\\", \\"c5ad\\", \\"c5d\\", \\"c5n\\", \\"c6g\\", \\"c6gd\\", \\"c6gn\\",
\\"r3\\", \\"r4\\", \\"r5\\", \\"r5a\\", \\"r5ad\\", \\"r5b\\", \\"r5d\\", \\"r5dn\\", \\"r5n\\", \\"r6g\\", \\"r6gd\\",
\\"x1\\", \\"x1e\\", \\"x2gd\\", \\"z1d\\", \\"d2\\", \\"d3\\", \\"d3en\\", \\"h1\\", \\"i2\\", \\"i3\\", \\"i3en\\",
\\"f1\\", \\"g2\\", \\"g3\\", \\"g3s\\", \\"g4ad\\", \\"g4dn\\", \\"inf1\\", \\"p2\\", \\"p3\\", \\"p3dn\\", \\"p4d\\"]
-s, --size EC2 instance sizes.
[array] [choices: \\"nano\\", \\"micro\\", \\"small\\", \\"medium\\", \\"large\\", \\"xlarge\\",
\\"2xlarge\\", \\"3xlarge\\", \\"4xlarge\\", \\"6xlarge\\", \\"8xlarge\\", \\"9xlarge\\", \\"10xlarge\\",
Expand Down Expand Up @@ -491,22 +493,24 @@ Options:
\\"m6g.xlarge\\", \\"m6g.2xlarge\\", \\"m6g.4xlarge\\", \\"m6g.8xlarge\\", \\"m6g.12xlarge\\",
\\"m6g.16xlarge\\", \\"m6g.metal\\", \\"m6gd.medium\\", \\"m6gd.large\\", \\"m6gd.xlarge\\",
\\"m6gd.2xlarge\\", \\"m6gd.4xlarge\\", \\"m6gd.8xlarge\\", \\"m6gd.12xlarge\\",
\\"m6gd.16xlarge\\", \\"m6gd.metal\\", \\"c1.medium\\", \\"c1.xlarge\\", \\"c3.large\\",
\\"c3.xlarge\\", \\"c3.2xlarge\\", \\"c3.4xlarge\\", \\"c3.8xlarge\\", \\"c4.large\\",
\\"c4.xlarge\\", \\"c4.2xlarge\\", \\"c4.4xlarge\\", \\"c4.8xlarge\\", \\"c5.large\\",
\\"c5.xlarge\\", \\"c5.2xlarge\\", \\"c5.4xlarge\\", \\"c5.9xlarge\\", \\"c5.12xlarge\\",
\\"c5.18xlarge\\", \\"c5.24xlarge\\", \\"c5.metal\\", \\"c5a.large\\", \\"c5a.xlarge\\",
\\"c5a.2xlarge\\", \\"c5a.4xlarge\\", \\"c5a.8xlarge\\", \\"c5a.12xlarge\\", \\"c5a.16xlarge\\",
\\"c5a.24xlarge\\", \\"c5ad.large\\", \\"c5ad.xlarge\\", \\"c5ad.2xlarge\\", \\"c5ad.4xlarge\\",
\\"c5ad.8xlarge\\", \\"c5ad.12xlarge\\", \\"c5ad.16xlarge\\", \\"c5ad.24xlarge\\",
\\"c5d.large\\", \\"c5d.xlarge\\", \\"c5d.2xlarge\\", \\"c5d.4xlarge\\", \\"c5d.9xlarge\\",
\\"c5d.12xlarge\\", \\"c5d.18xlarge\\", \\"c5d.24xlarge\\", \\"c5d.metal\\", \\"c5n.large\\",
\\"c5n.xlarge\\", \\"c5n.2xlarge\\", \\"c5n.4xlarge\\", \\"c5n.9xlarge\\", \\"c5n.18xlarge\\",
\\"c5n.metal\\", \\"c6g.medium\\", \\"c6g.large\\", \\"c6g.xlarge\\", \\"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.large\\", \\"c6gn.xlarge\\", \\"c6gn.2xlarge\\", \\"c6gn.4xlarge\\", \\"c6gn.8xlarge\\",
\\"m6gd.16xlarge\\", \\"m6gd.metal\\", \\"m6i.large\\", \\"m6i.xlarge\\", \\"m6i.2xlarge\\",
\\"m6i.4xlarge\\", \\"m6i.8xlarge\\", \\"m6i.12xlarge\\", \\"m6i.16xlarge\\", \\"m6i.24xlarge\\",
\\"m6i.32xlarge\\", \\"c1.medium\\", \\"c1.xlarge\\", \\"c3.large\\", \\"c3.xlarge\\",
\\"c3.2xlarge\\", \\"c3.4xlarge\\", \\"c3.8xlarge\\", \\"c4.large\\", \\"c4.xlarge\\",
\\"c4.2xlarge\\", \\"c4.4xlarge\\", \\"c4.8xlarge\\", \\"c5.large\\", \\"c5.xlarge\\",
\\"c5.2xlarge\\", \\"c5.4xlarge\\", \\"c5.9xlarge\\", \\"c5.12xlarge\\", \\"c5.18xlarge\\",
\\"c5.24xlarge\\", \\"c5.metal\\", \\"c5a.large\\", \\"c5a.xlarge\\", \\"c5a.2xlarge\\",
\\"c5a.4xlarge\\", \\"c5a.8xlarge\\", \\"c5a.12xlarge\\", \\"c5a.16xlarge\\", \\"c5a.24xlarge\\",
\\"c5ad.large\\", \\"c5ad.xlarge\\", \\"c5ad.2xlarge\\", \\"c5ad.4xlarge\\", \\"c5ad.8xlarge\\",
\\"c5ad.12xlarge\\", \\"c5ad.16xlarge\\", \\"c5ad.24xlarge\\", \\"c5d.large\\", \\"c5d.xlarge\\",
\\"c5d.2xlarge\\", \\"c5d.4xlarge\\", \\"c5d.9xlarge\\", \\"c5d.12xlarge\\", \\"c5d.18xlarge\\",
\\"c5d.24xlarge\\", \\"c5d.metal\\", \\"c5n.large\\", \\"c5n.xlarge\\", \\"c5n.2xlarge\\",
\\"c5n.4xlarge\\", \\"c5n.9xlarge\\", \\"c5n.18xlarge\\", \\"c5n.metal\\", \\"c6g.medium\\",
\\"c6g.large\\", \\"c6g.xlarge\\", \\"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.large\\",
\\"c6gn.xlarge\\", \\"c6gn.2xlarge\\", \\"c6gn.4xlarge\\", \\"c6gn.8xlarge\\",
\\"c6gn.12xlarge\\", \\"c6gn.16xlarge\\", \\"r3.large\\", \\"r3.xlarge\\", \\"r3.2xlarge\\",
\\"r3.4xlarge\\", \\"r3.8xlarge\\", \\"r4.large\\", \\"r4.xlarge\\", \\"r4.2xlarge\\",
\\"r4.4xlarge\\", \\"r4.8xlarge\\", \\"r4.16xlarge\\", \\"r5.large\\", \\"r5.xlarge\\",
Expand Down Expand Up @@ -551,11 +555,11 @@ Options:
\\"acceleratedComputing\\"]
-f, --familyType EC2 instance family types.
[array] [choices: \\"a1\\", \\"t1\\", \\"t2\\", \\"t3\\", \\"t3a\\", \\"t4g\\", \\"m1\\", \\"m2\\", \\"m3\\",
\\"m4\\", \\"m5\\", \\"m5a\\", \\"m5ad\\", \\"m5d\\", \\"m5dn\\", \\"m5n\\", \\"m5zn\\", \\"m6g\\", \\"m6gd\\", \\"c1\\",
\\"c3\\", \\"c4\\", \\"c5\\", \\"c5a\\", \\"c5ad\\", \\"c5d\\", \\"c5n\\", \\"c6g\\", \\"c6gd\\", \\"c6gn\\", \\"r3\\",
\\"r4\\", \\"r5\\", \\"r5a\\", \\"r5ad\\", \\"r5b\\", \\"r5d\\", \\"r5dn\\", \\"r5n\\", \\"r6g\\", \\"r6gd\\", \\"x1\\",
\\"x1e\\", \\"x2gd\\", \\"z1d\\", \\"d2\\", \\"d3\\", \\"d3en\\", \\"h1\\", \\"i2\\", \\"i3\\", \\"i3en\\", \\"f1\\",
\\"g2\\", \\"g3\\", \\"g3s\\", \\"g4ad\\", \\"g4dn\\", \\"inf1\\", \\"p2\\", \\"p3\\", \\"p3dn\\", \\"p4d\\"]
\\"m4\\", \\"m5\\", \\"m5a\\", \\"m5ad\\", \\"m5d\\", \\"m5dn\\", \\"m5n\\", \\"m5zn\\", \\"m6g\\", \\"m6gd\\", \\"m6i\\",
\\"c1\\", \\"c3\\", \\"c4\\", \\"c5\\", \\"c5a\\", \\"c5ad\\", \\"c5d\\", \\"c5n\\", \\"c6g\\", \\"c6gd\\", \\"c6gn\\",
\\"r3\\", \\"r4\\", \\"r5\\", \\"r5a\\", \\"r5ad\\", \\"r5b\\", \\"r5d\\", \\"r5dn\\", \\"r5n\\", \\"r6g\\", \\"r6gd\\",
\\"x1\\", \\"x1e\\", \\"x2gd\\", \\"z1d\\", \\"d2\\", \\"d3\\", \\"d3en\\", \\"h1\\", \\"i2\\", \\"i3\\", \\"i3en\\",
\\"f1\\", \\"g2\\", \\"g3\\", \\"g3s\\", \\"g4ad\\", \\"g4dn\\", \\"inf1\\", \\"p2\\", \\"p3\\", \\"p3dn\\", \\"p4d\\"]
-s, --size EC2 instance sizes.
[array] [choices: \\"nano\\", \\"micro\\", \\"small\\", \\"medium\\", \\"large\\", \\"xlarge\\",
\\"2xlarge\\", \\"3xlarge\\", \\"4xlarge\\", \\"6xlarge\\", \\"8xlarge\\", \\"9xlarge\\", \\"10xlarge\\",
Expand Down

0 comments on commit b7ce406

Please sign in to comment.