Skip to content

Commit

Permalink
feat(ec2): add c8g and m8g instance classes (#32528)
Browse files Browse the repository at this point in the history
### Issue # (if applicable)

Closes #32522 

### Reason for this change

Added new graviton 4 instance classes

### Description of changes

Updated the ec2 instance class enum definitions to include new graviton 4 types

### Description of how you validated changes

No

### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
rockaport authored Dec 24, 2024
1 parent b8e79b6 commit a81eec6
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,20 @@ export enum InstanceClass {
*/
C7G = 'c7g',

/**
* Compute optimized instances for high performance computing, 8th generation with Graviton4 processors
*
* This instance class is currently only available in US East (Ohio), US East (N. Virginia), US West (Oregon), and Europe (Frankfurt).
*/
COMPUTE8_GRAVITON4 = 'compute8-graviton4',

/**
* Compute optimized instances for high performance computing, 8th generation with Graviton4 processors
*
* This instance class is currently only available in US East (Ohio), US East (N. Virginia), US West (Oregon), and Europe (Frankfurt).
*/
C8G = 'c8g',

/**
* Compute optimized instances for high performance computing, 6th generation with Graviton2 processors
* and local NVME drive
Expand Down Expand Up @@ -1064,6 +1078,20 @@ export enum InstanceClass {
*/
M7G = 'm7g',

/**
* Standard instances, 8th generation with Graviton4 processors
*
* This instance class is currently only available in US East (Ohio), US East (N. Virginia), US West (Oregon), and Europe (Frankfurt).
*/
STANDARD8_GRAVITON = 'standard8-graviton',

/**
* Standard instances, 8th generation with Graviton4 processors
*
* This instance class is currently only available in US East (Ohio), US East (N. Virginia), US West (Oregon), and Europe (Frankfurt).
*/
M8G = 'm8g',

/**
* Standard instances, 7th generation with Graviton3 processors and local NVME drive
*
Expand Down Expand Up @@ -1546,6 +1574,8 @@ export class InstanceType {
[InstanceClass.C7I]: 'c7i',
[InstanceClass.COMPUTE7_AMD]: 'c7a',
[InstanceClass.C7A]: 'c7a',
[InstanceClass.COMPUTE8_GRAVITON4]: 'c8g',
[InstanceClass.C8G]: 'c8g',
[InstanceClass.STORAGE2]: 'd2',
[InstanceClass.D2]: 'd2',
[InstanceClass.STORAGE3]: 'd3',
Expand Down Expand Up @@ -1632,6 +1662,8 @@ export class InstanceType {
[InstanceClass.M6GD]: 'm6gd',
[InstanceClass.STANDARD7_GRAVITON]: 'm7g',
[InstanceClass.M7G]: 'm7g',
[InstanceClass.STANDARD8_GRAVITON]: 'm8g',
[InstanceClass.M8G]: 'm8g',
[InstanceClass.STANDARD7_GRAVITON3_NVME_DRIVE]: 'm7gd',
[InstanceClass.M7GD]: 'm7gd',
[InstanceClass.STANDARD7_INTEL]: 'm7i',
Expand Down

0 comments on commit a81eec6

Please sign in to comment.