Skip to content

Commit

Permalink
fix: update constants (#717)
Browse files Browse the repository at this point in the history
Co-authored-by: hoonoh <[email protected]>
  • Loading branch information
hoonoh and hoonoh authored Sep 20, 2023
1 parent cf8227a commit a1d4695
Show file tree
Hide file tree
Showing 3 changed files with 312 additions and 204 deletions.
45 changes: 45 additions & 0 deletions src/constants/ec2-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,15 @@ export const ec2Info: Record<_InstanceType | string, Ec2InstanceInfo> = {
'c7gn.large': { vCpu: 2, memoryGiB: 4 },
'c7gn.medium': { vCpu: 1, memoryGiB: 2 },
'c7gn.xlarge': { vCpu: 4, memoryGiB: 8 },
'c7i.12xlarge': { vCpu: 48, memoryGiB: 96 },
'c7i.16xlarge': { vCpu: 64, memoryGiB: 128 },
'c7i.24xlarge': { vCpu: 96, memoryGiB: 192 },
'c7i.2xlarge': { vCpu: 8, memoryGiB: 16 },
'c7i.48xlarge': { vCpu: 192, memoryGiB: 384 },
'c7i.4xlarge': { vCpu: 16, memoryGiB: 32 },
'c7i.8xlarge': { vCpu: 32, memoryGiB: 64 },
'c7i.large': { vCpu: 2, memoryGiB: 4 },
'c7i.xlarge': { vCpu: 4, memoryGiB: 8 },
'd2.2xlarge': { vCpu: 8, memoryGiB: 61 },
'd2.4xlarge': { vCpu: 16, memoryGiB: 122 },
'd2.8xlarge': { vCpu: 36, memoryGiB: 244 },
Expand Down Expand Up @@ -210,6 +219,10 @@ export const ec2Info: Record<_InstanceType | string, Ec2InstanceInfo> = {
'h1.8xlarge': { vCpu: 32, memoryGiB: 128 },
'hpc6a.48xlarge': { vCpu: 96, memoryGiB: 384 },
'hpc6id.32xlarge': { vCpu: 64, memoryGiB: 1024 },
'hpc7a.12xlarge': { vCpu: 24, memoryGiB: 768 },
'hpc7a.24xlarge': { vCpu: 48, memoryGiB: 768 },
'hpc7a.48xlarge': { vCpu: 96, memoryGiB: 768 },
'hpc7a.96xlarge': { vCpu: 192, memoryGiB: 768 },
'hpc7g.16xlarge': { vCpu: 64, memoryGiB: 128 },
'hpc7g.4xlarge': { vCpu: 16, memoryGiB: 128 },
'hpc7g.8xlarge': { vCpu: 32, memoryGiB: 128 },
Expand Down Expand Up @@ -411,6 +424,18 @@ export const ec2Info: Record<_InstanceType | string, Ec2InstanceInfo> = {
'm6in.large': { vCpu: 2, memoryGiB: 8 },
'm6in.metal': { vCpu: 128, memoryGiB: 512 },
'm6in.xlarge': { vCpu: 4, memoryGiB: 16 },
'm7a.12xlarge': { vCpu: 48, memoryGiB: 192 },
'm7a.16xlarge': { vCpu: 64, memoryGiB: 256 },
'm7a.24xlarge': { vCpu: 96, memoryGiB: 384 },
'm7a.2xlarge': { vCpu: 8, memoryGiB: 32 },
'm7a.32xlarge': { vCpu: 128, memoryGiB: 512 },
'm7a.48xlarge': { vCpu: 192, memoryGiB: 768 },
'm7a.4xlarge': { vCpu: 16, memoryGiB: 64 },
'm7a.8xlarge': { vCpu: 32, memoryGiB: 128 },
'm7a.large': { vCpu: 2, memoryGiB: 8 },
'm7a.medium': { vCpu: 1, memoryGiB: 4 },
'm7a.metal-48xl': { vCpu: 192, memoryGiB: 768 },
'm7a.xlarge': { vCpu: 4, memoryGiB: 16 },
'm7g.12xlarge': { vCpu: 48, memoryGiB: 192 },
'm7g.16xlarge': { vCpu: 64, memoryGiB: 256 },
'm7g.2xlarge': { vCpu: 8, memoryGiB: 32 },
Expand Down Expand Up @@ -443,6 +468,7 @@ export const ec2Info: Record<_InstanceType | string, Ec2InstanceInfo> = {
'm7i.large': { vCpu: 2, memoryGiB: 8 },
'm7i.xlarge': { vCpu: 4, memoryGiB: 16 },
'mac1.metal': { vCpu: 12, memoryGiB: 32 },
'mac2-m2pro.metal': { vCpu: 12, memoryGiB: 32 },
'mac2.metal': { vCpu: 8, memoryGiB: 16 },
'p2.16xlarge': { vCpu: 64, memoryGiB: 732 },
'p2.8xlarge': { vCpu: 32, memoryGiB: 488 },
Expand Down Expand Up @@ -594,6 +620,17 @@ export const ec2Info: Record<_InstanceType | string, Ec2InstanceInfo> = {
'r6in.large': { vCpu: 2, memoryGiB: 16 },
'r6in.metal': { vCpu: 128, memoryGiB: 1024 },
'r6in.xlarge': { vCpu: 4, memoryGiB: 32 },
'r7a.12xlarge': { vCpu: 48, memoryGiB: 384 },
'r7a.16xlarge': { vCpu: 64, memoryGiB: 512 },
'r7a.24xlarge': { vCpu: 96, memoryGiB: 768 },
'r7a.2xlarge': { vCpu: 8, memoryGiB: 64 },
'r7a.32xlarge': { vCpu: 128, memoryGiB: 1024 },
'r7a.48xlarge': { vCpu: 192, memoryGiB: 1536 },
'r7a.4xlarge': { vCpu: 16, memoryGiB: 128 },
'r7a.8xlarge': { vCpu: 32, memoryGiB: 256 },
'r7a.large': { vCpu: 2, memoryGiB: 16 },
'r7a.medium': { vCpu: 1, memoryGiB: 8 },
'r7a.xlarge': { vCpu: 4, memoryGiB: 32 },
'r7g.12xlarge': { vCpu: 48, memoryGiB: 384 },
'r7g.16xlarge': { vCpu: 64, memoryGiB: 512 },
'r7g.2xlarge': { vCpu: 8, memoryGiB: 64 },
Expand All @@ -611,6 +648,14 @@ export const ec2Info: Record<_InstanceType | string, Ec2InstanceInfo> = {
'r7gd.large': { vCpu: 2, memoryGiB: 16 },
'r7gd.medium': { vCpu: 1, memoryGiB: 8 },
'r7gd.xlarge': { vCpu: 4, memoryGiB: 32 },
'r7iz.12xlarge': { vCpu: 48, memoryGiB: 384 },
'r7iz.16xlarge': { vCpu: 64, memoryGiB: 512 },
'r7iz.2xlarge': { vCpu: 8, memoryGiB: 64 },
'r7iz.32xlarge': { vCpu: 128, memoryGiB: 1024 },
'r7iz.4xlarge': { vCpu: 16, memoryGiB: 128 },
'r7iz.8xlarge': { vCpu: 32, memoryGiB: 256 },
'r7iz.large': { vCpu: 2, memoryGiB: 16 },
'r7iz.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
45 changes: 45 additions & 0 deletions src/constants/ec2-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const instanceFamilyGeneral = [
'm6id',
'm6idn',
'm6in',
'm7a',
'm7g',
'm7gd',
'm7i',
Expand All @@ -48,6 +49,7 @@ export const instanceFamilyCompute = [
'c7g',
'c7gd',
'c7gn',
'c7i',
] as const;

export const instanceFamilyMemory = [
Expand All @@ -67,8 +69,10 @@ export const instanceFamilyMemory = [
'r6id',
'r6idn',
'r6in',
'r7a',
'r7g',
'r7gd',
'r7iz',
'x1',
'x1e',
'x2gd',
Expand Down Expand Up @@ -155,6 +159,7 @@ export const instanceSizes = [
'32xlarge',
'48xlarge',
'metal',
'metal-48xl',
] as const;

export type InstanceSize = (typeof instanceSizes)[number];
Expand Down Expand Up @@ -339,6 +344,18 @@ export const allInstances = [
'm6in.24xlarge',
'm6in.32xlarge',
'm6in.metal',
'm7a.medium',
'm7a.large',
'm7a.xlarge',
'm7a.2xlarge',
'm7a.4xlarge',
'm7a.8xlarge',
'm7a.12xlarge',
'm7a.16xlarge',
'm7a.24xlarge',
'm7a.32xlarge',
'm7a.48xlarge',
'm7a.metal-48xl',
'm7g.medium',
'm7g.large',
'm7g.xlarge',
Expand Down Expand Up @@ -515,6 +532,15 @@ export const allInstances = [
'c7gn.8xlarge',
'c7gn.12xlarge',
'c7gn.16xlarge',
'c7i.large',
'c7i.xlarge',
'c7i.2xlarge',
'c7i.4xlarge',
'c7i.8xlarge',
'c7i.12xlarge',
'c7i.16xlarge',
'c7i.24xlarge',
'c7i.48xlarge',
'r3.large',
'r3.xlarge',
'r3.2xlarge',
Expand Down Expand Up @@ -656,6 +682,17 @@ export const allInstances = [
'r6in.24xlarge',
'r6in.32xlarge',
'r6in.metal',
'r7a.medium',
'r7a.large',
'r7a.xlarge',
'r7a.2xlarge',
'r7a.4xlarge',
'r7a.8xlarge',
'r7a.12xlarge',
'r7a.16xlarge',
'r7a.24xlarge',
'r7a.32xlarge',
'r7a.48xlarge',
'r7g.medium',
'r7g.large',
'r7g.xlarge',
Expand All @@ -673,6 +710,14 @@ export const allInstances = [
'r7gd.8xlarge',
'r7gd.12xlarge',
'r7gd.16xlarge',
'r7iz.large',
'r7iz.xlarge',
'r7iz.2xlarge',
'r7iz.4xlarge',
'r7iz.8xlarge',
'r7iz.12xlarge',
'r7iz.16xlarge',
'r7iz.32xlarge',
'x1.16xlarge',
'x1.32xlarge',
'x1e.xlarge',
Expand Down
Loading

0 comments on commit a1d4695

Please sign in to comment.