Skip to content

Commit

Permalink
fix: update constants (#680)
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 Jul 28, 2023
1 parent 3a9f951 commit 534dac4
Show file tree
Hide file tree
Showing 3 changed files with 271 additions and 208 deletions.
24 changes: 24 additions & 0 deletions src/constants/ec2-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ export const ec2Info: Record<_InstanceType | string, Ec2InstanceInfo> = {
'c7g.medium': { vCpu: 1, memoryGiB: 2 },
'c7g.metal': { vCpu: 64, memoryGiB: 128 },
'c7g.xlarge': { vCpu: 4, memoryGiB: 8 },
'c7gd.12xlarge': { vCpu: 48, memoryGiB: 96 },
'c7gd.16xlarge': { vCpu: 64, memoryGiB: 128 },
'c7gd.2xlarge': { vCpu: 8, memoryGiB: 16 },
'c7gd.4xlarge': { vCpu: 16, memoryGiB: 32 },
'c7gd.8xlarge': { vCpu: 32, memoryGiB: 64 },
'c7gd.large': { vCpu: 2, memoryGiB: 4 },
'c7gd.medium': { vCpu: 1, memoryGiB: 2 },
'c7gd.xlarge': { vCpu: 4, memoryGiB: 8 },
'c7gn.12xlarge': { vCpu: 48, memoryGiB: 96 },
'c7gn.16xlarge': { vCpu: 64, memoryGiB: 128 },
'c7gn.2xlarge': { vCpu: 8, memoryGiB: 16 },
Expand Down Expand Up @@ -412,6 +420,14 @@ export const ec2Info: Record<_InstanceType | string, Ec2InstanceInfo> = {
'm7g.medium': { vCpu: 1, memoryGiB: 4 },
'm7g.metal': { vCpu: 64, memoryGiB: 256 },
'm7g.xlarge': { vCpu: 4, memoryGiB: 16 },
'm7gd.12xlarge': { vCpu: 48, memoryGiB: 192 },
'm7gd.16xlarge': { vCpu: 64, memoryGiB: 256 },
'm7gd.2xlarge': { vCpu: 8, memoryGiB: 32 },
'm7gd.4xlarge': { vCpu: 16, memoryGiB: 64 },
'm7gd.8xlarge': { vCpu: 32, memoryGiB: 128 },
'm7gd.large': { vCpu: 2, memoryGiB: 8 },
'm7gd.medium': { vCpu: 1, memoryGiB: 4 },
'm7gd.xlarge': { vCpu: 4, memoryGiB: 16 },
'mac1.metal': { vCpu: 12, memoryGiB: 32 },
'mac2.metal': { vCpu: 8, memoryGiB: 16 },
'p2.16xlarge': { vCpu: 64, memoryGiB: 732 },
Expand Down Expand Up @@ -573,6 +589,14 @@ export const ec2Info: Record<_InstanceType | string, Ec2InstanceInfo> = {
'r7g.medium': { vCpu: 1, memoryGiB: 8 },
'r7g.metal': { vCpu: 64, memoryGiB: 512 },
'r7g.xlarge': { vCpu: 4, memoryGiB: 32 },
'r7gd.12xlarge': { vCpu: 48, memoryGiB: 256 },
'r7gd.16xlarge': { vCpu: 64, memoryGiB: 512 },
'r7gd.2xlarge': { vCpu: 8, memoryGiB: 64 },
'r7gd.4xlarge': { vCpu: 16, memoryGiB: 128 },
'r7gd.8xlarge': { vCpu: 32, memoryGiB: 192 },
'r7gd.large': { vCpu: 2, memoryGiB: 16 },
'r7gd.medium': { vCpu: 1, memoryGiB: 8 },
'r7gd.xlarge': { vCpu: 4, memoryGiB: 32 },
't1.micro': { vCpu: 1, memoryGiB: 0.613 },
't2.2xlarge': { vCpu: 8, memoryGiB: 32 },
't2.large': { vCpu: 2, memoryGiB: 8 },
Expand Down
27 changes: 27 additions & 0 deletions src/constants/ec2-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const instanceFamilyGeneral = [
'm6idn',
'm6in',
'm7g',
'm7gd',
] as const;

export const instanceFamilyCompute = [
Expand All @@ -43,6 +44,7 @@ export const instanceFamilyCompute = [
'c6id',
'c6in',
'c7g',
'c7gd',
'c7gn',
] as const;

Expand All @@ -64,6 +66,7 @@ export const instanceFamilyMemory = [
'r6idn',
'r6in',
'r7g',
'r7gd',
'x1',
'x1e',
'x2gd',
Expand Down Expand Up @@ -343,6 +346,14 @@ export const allInstances = [
'm7g.12xlarge',
'm7g.16xlarge',
'm7g.metal',
'm7gd.medium',
'm7gd.large',
'm7gd.xlarge',
'm7gd.2xlarge',
'm7gd.4xlarge',
'm7gd.8xlarge',
'm7gd.12xlarge',
'm7gd.16xlarge',
'c1.medium',
'c1.xlarge',
'c3.large',
Expand Down Expand Up @@ -472,6 +483,14 @@ export const allInstances = [
'c7g.12xlarge',
'c7g.16xlarge',
'c7g.metal',
'c7gd.medium',
'c7gd.large',
'c7gd.xlarge',
'c7gd.2xlarge',
'c7gd.4xlarge',
'c7gd.8xlarge',
'c7gd.12xlarge',
'c7gd.16xlarge',
'c7gn.medium',
'c7gn.large',
'c7gn.xlarge',
Expand Down Expand Up @@ -630,6 +649,14 @@ export const allInstances = [
'r7g.12xlarge',
'r7g.16xlarge',
'r7g.metal',
'r7gd.medium',
'r7gd.large',
'r7gd.xlarge',
'r7gd.2xlarge',
'r7gd.4xlarge',
'r7gd.8xlarge',
'r7gd.12xlarge',
'r7gd.16xlarge',
'x1.16xlarge',
'x1.32xlarge',
'x1e.xlarge',
Expand Down
Loading

0 comments on commit 534dac4

Please sign in to comment.