Skip to content

Commit

Permalink
fix: update ec2-types (#314)
Browse files Browse the repository at this point in the history
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: hoonoh <hoonoh@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and hoonoh authored Dec 9, 2020
1 parent 67d61c4 commit 67a5ae1
Show file tree
Hide file tree
Showing 3 changed files with 177 additions and 111 deletions.
27 changes: 27 additions & 0 deletions src/constants/ec2-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ export const ec2Info: Record<InstanceType | string, Ec2InstanceInfo> = {
'd2.4xlarge': { vCpu: 16, memoryGiB: 122 },
'd2.8xlarge': { vCpu: 36, memoryGiB: 244 },
'd2.xlarge': { vCpu: 4, memoryGiB: 30.5 },
'd3.2xlarge': { vCpu: 8, memoryGiB: 64 },
'd3.4xlarge': { vCpu: 16, memoryGiB: 128 },
'd3.8xlarge': { vCpu: 32, memoryGiB: 256 },
'd3.xlarge': { vCpu: 4, memoryGiB: 32 },
'd3en.12xlarge': { vCpu: 48, memoryGiB: 192 },
'd3en.2xlarge': { vCpu: 8, memoryGiB: 32 },
'd3en.4xlarge': { vCpu: 16, memoryGiB: 64 },
'd3en.6xlarge': { vCpu: 24, memoryGiB: 96 },
'd3en.8xlarge': { vCpu: 32, memoryGiB: 128 },
'd3en.xlarge': { vCpu: 4, memoryGiB: 16 },
'f1.16xlarge': { vCpu: 64, memoryGiB: 976 },
'f1.2xlarge': { vCpu: 8, memoryGiB: 122 },
'f1.4xlarge': { vCpu: 16, memoryGiB: 244 },
Expand Down Expand Up @@ -197,6 +207,13 @@ export const ec2Info: Record<InstanceType | string, Ec2InstanceInfo> = {
'm5n.large': { vCpu: 2, memoryGiB: 8 },
'm5n.metal': { vCpu: 96, memoryGiB: 384 },
'm5n.xlarge': { vCpu: 4, memoryGiB: 16 },
'm5zn.12xlarge': { vCpu: 48, memoryGiB: 192 },
'm5zn.2xlarge': { vCpu: 8, memoryGiB: 32 },
'm5zn.3xlarge': { vCpu: 16, memoryGiB: 48 },
'm5zn.6xlarge': { vCpu: 32, memoryGiB: 96 },
'm5zn.large': { vCpu: 2, memoryGiB: 8 },
'm5zn.metal': { vCpu: 48, memoryGiB: 192 },
'm5zn.xlarge': { vCpu: 4, memoryGiB: 16 },
'm6g.12xlarge': { vCpu: 48, memoryGiB: 192 },
'm6g.16xlarge': { vCpu: 64, memoryGiB: 256 },
'm6g.2xlarge': { vCpu: 8, memoryGiB: 32 },
Expand All @@ -215,6 +232,7 @@ 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 },
'mac1.metal': { vCpu: 12, memoryGiB: 32 },
'p2.16xlarge': { vCpu: 64, memoryGiB: 732 },
'p2.8xlarge': { vCpu: 32, memoryGiB: 488 },
'p2.xlarge': { vCpu: 4, memoryGiB: 61 },
Expand Down Expand Up @@ -259,6 +277,15 @@ export const ec2Info: Record<InstanceType | string, Ec2InstanceInfo> = {
'r5ad.8xlarge': { vCpu: 32, memoryGiB: 256 },
'r5ad.large': { vCpu: 2, memoryGiB: 16 },
'r5ad.xlarge': { vCpu: 4, memoryGiB: 32 },
'r5b.12xlarge': { vCpu: 48, memoryGiB: 384 },
'r5b.16xlarge': { vCpu: 64, memoryGiB: 512 },
'r5b.24xlarge': { vCpu: 96, memoryGiB: 768 },
'r5b.2xlarge': { vCpu: 8, memoryGiB: 64 },
'r5b.4xlarge': { vCpu: 16, memoryGiB: 128 },
'r5b.8xlarge': { vCpu: 32, memoryGiB: 256 },
'r5b.large': { vCpu: 2, memoryGiB: 16 },
'r5b.metal': { vCpu: 96, memoryGiB: 768 },
'r5b.xlarge': { vCpu: 4, memoryGiB: 32 },
'r5d.12xlarge': { vCpu: 48, memoryGiB: 384 },
'r5d.16xlarge': { vCpu: 64, memoryGiB: 512 },
'r5d.24xlarge': { vCpu: 96, memoryGiB: 768 },
Expand Down
39 changes: 34 additions & 5 deletions src/constants/ec2-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const instanceFamilyGeneral = [
'm5d',
'm5dn',
'm5n',
'm5zn',
'm6g',
'm6gd',
] as const;
Expand All @@ -38,6 +39,7 @@ export const instanceFamilyMemory = [
'r5',
'r5a',
'r5ad',
'r5b',
'r5d',
'r5dn',
'r5n',
Expand All @@ -48,14 +50,15 @@ export const instanceFamilyMemory = [
'z1d',
] as const;

export const instanceFamilyStorage = ['d2', 'h1', 'i2', 'i3', 'i3en', 'inf1'] as const;
export const instanceFamilyStorage = ['d2', 'd3', 'd3en', 'h1', 'i2', 'i3', 'i3en'] as const;

export const instanceFamilyAcceleratedComputing = [
'f1',
'g2',
'g3',
'g3s',
'g4dn',
'inf1',
'p2',
'p3',
'p3dn',
Expand Down Expand Up @@ -208,6 +211,13 @@ export const allInstances = [
'm5n.12xlarge',
'm5n.16xlarge',
'm5n.24xlarge',
'm5zn.large',
'm5zn.xlarge',
'm5zn.2xlarge',
'm5zn.3xlarge',
'm5zn.6xlarge',
'm5zn.12xlarge',
'm5zn.metal',
'm6g.medium',
'm6g.large',
'm6g.xlarge',
Expand Down Expand Up @@ -333,6 +343,15 @@ export const allInstances = [
'r5ad.12xlarge',
'r5ad.16xlarge',
'r5ad.24xlarge',
'r5b.large',
'r5b.xlarge',
'r5b.2xlarge',
'r5b.4xlarge',
'r5b.8xlarge',
'r5b.12xlarge',
'r5b.16xlarge',
'r5b.24xlarge',
'r5b.metal',
'r5d.large',
'r5d.xlarge',
'r5d.2xlarge',
Expand Down Expand Up @@ -395,6 +414,16 @@ export const allInstances = [
'd2.2xlarge',
'd2.4xlarge',
'd2.8xlarge',
'd3.xlarge',
'd3.2xlarge',
'd3.4xlarge',
'd3.8xlarge',
'd3en.xlarge',
'd3en.2xlarge',
'd3en.4xlarge',
'd3en.6xlarge',
'd3en.8xlarge',
'd3en.12xlarge',
'h1.2xlarge',
'h1.4xlarge',
'h1.8xlarge',
Expand All @@ -418,10 +447,6 @@ export const allInstances = [
'i3en.12xlarge',
'i3en.24xlarge',
'i3en.metal',
'inf1.xlarge',
'inf1.2xlarge',
'inf1.6xlarge',
'inf1.24xlarge',
'f1.2xlarge',
'f1.4xlarge',
'f1.16xlarge',
Expand All @@ -438,6 +463,10 @@ export const allInstances = [
'g4dn.12xlarge',
'g4dn.16xlarge',
'g4dn.metal',
'inf1.xlarge',
'inf1.2xlarge',
'inf1.6xlarge',
'inf1.24xlarge',
'p2.xlarge',
'p2.8xlarge',
'p2.16xlarge',
Expand Down
Loading

0 comments on commit 67a5ae1

Please sign in to comment.