Skip to content

Commit

Permalink
Add support for c5.2xlarge and c6g.2xlarge instance types (#123)
Browse files Browse the repository at this point in the history
Signed-off-by: Rishabh Singh <[email protected]>
(cherry picked from commit 48a2179)
  • Loading branch information
rishabh6788 committed Jul 29, 2024
1 parent fa8b80d commit 259ed7d
Show file tree
Hide file tree
Showing 2 changed files with 1,078 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/opensearch-config/node-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export enum x64Ec2InstanceType {
M5_2XLARGE = 'm5.2xlarge',
C5_LARGE = 'c5.large',
C5_XLARGE = 'c5.xlarge',
C5_2XLARGE = 'c5.2xlarge',
R5_LARGE = 'r5.large',
R5_XLARGE = 'r5.xlarge',
R5_2XLARGE = 'r5.2xlarge',
Expand All @@ -68,6 +69,7 @@ export enum arm64Ec2InstanceType {
M6G_2XLARGE = 'm6g.2xlarge',
C6G_LARGE = 'c6g.large',
C6G_XLARGE = 'c6g.xlarge',
C6G_2XLARGE = 'c6g.2xlarge',
R6G_LARGE = 'r6g.large',
R6G_XLARGE = 'r6g.xlarge',
R6G_2XLARGE = 'r6g.2xlarge',
Expand All @@ -85,6 +87,8 @@ export const getX64InstanceTypes = (instanceType: string) => {
return InstanceType.of(InstanceClass.C5, InstanceSize.LARGE);
case x64Ec2InstanceType.C5_XLARGE:
return InstanceType.of(InstanceClass.C5, InstanceSize.XLARGE);
case x64Ec2InstanceType.C5_2XLARGE:
return InstanceType.of(InstanceClass.C5, InstanceSize.XLARGE2);
case x64Ec2InstanceType.R5_LARGE:
return InstanceType.of(InstanceClass.R5, InstanceSize.LARGE);
case x64Ec2InstanceType.R5_XLARGE:
Expand Down Expand Up @@ -114,6 +118,8 @@ export const getArm64InstanceTypes = (instanceType: string) => {
return InstanceType.of(InstanceClass.C6G, InstanceSize.LARGE);
case arm64Ec2InstanceType.C6G_XLARGE:
return InstanceType.of(InstanceClass.C6G, InstanceSize.XLARGE);
case arm64Ec2InstanceType.C6G_2XLARGE:
return InstanceType.of(InstanceClass.C6G, InstanceSize.XLARGE2);
case arm64Ec2InstanceType.R6G_LARGE:
return InstanceType.of(InstanceClass.R6G, InstanceSize.LARGE);
case arm64Ec2InstanceType.R6G_XLARGE:
Expand Down
Loading

0 comments on commit 259ed7d

Please sign in to comment.