Skip to content

Commit

Permalink
chore(ec2): add R8g instance type (#30803)
Browse files Browse the repository at this point in the history
### Issue # (if applicable)

None

### Reason for this change

AWS EC2 now supports R8G instance type. But CDK L2 construct does not support this.  

### Description of changes

Update `InstanceClass`

### Description of how you validated changes

None

### 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
badmintoncryer authored Jul 9, 2024
1 parent a68b418 commit 7cd0f65
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 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 @@ -376,6 +376,16 @@ export enum InstanceClass {
*/
R7A = 'r7a',

/**
* Memory optimized instances with Graviton4 processors
*/
MEMORY8_GRAVITON = 'memory8-graviton',

/**
* Memory optimized instances with Graviton4 processors
*/
R8G = 'r8g',

/**
* Compute optimized instances, 3rd generation
*/
Expand Down Expand Up @@ -1466,6 +1476,8 @@ export class InstanceType {
[InstanceClass.R7IZ]: 'r7iz',
[InstanceClass.MEMORY7_AMD]: 'r7a',
[InstanceClass.R7A]: 'r7a',
[InstanceClass.MEMORY8_GRAVITON]: 'r8g',
[InstanceClass.R8G]: 'r8g',
[InstanceClass.COMPUTE3]: 'c3',
[InstanceClass.C3]: 'c3',
[InstanceClass.COMPUTE4]: 'c4',
Expand Down

0 comments on commit 7cd0f65

Please sign in to comment.