Skip to content

Commit 7cd0f65

Browse files
chore(ec2): add R8g instance type (#30803)
### 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*
1 parent a68b418 commit 7cd0f65

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts

+12
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,16 @@ export enum InstanceClass {
376376
*/
377377
R7A = 'r7a',
378378

379+
/**
380+
* Memory optimized instances with Graviton4 processors
381+
*/
382+
MEMORY8_GRAVITON = 'memory8-graviton',
383+
384+
/**
385+
* Memory optimized instances with Graviton4 processors
386+
*/
387+
R8G = 'r8g',
388+
379389
/**
380390
* Compute optimized instances, 3rd generation
381391
*/
@@ -1466,6 +1476,8 @@ export class InstanceType {
14661476
[InstanceClass.R7IZ]: 'r7iz',
14671477
[InstanceClass.MEMORY7_AMD]: 'r7a',
14681478
[InstanceClass.R7A]: 'r7a',
1479+
[InstanceClass.MEMORY8_GRAVITON]: 'r8g',
1480+
[InstanceClass.R8G]: 'r8g',
14691481
[InstanceClass.COMPUTE3]: 'c3',
14701482
[InstanceClass.C3]: 'c3',
14711483
[InstanceClass.COMPUTE4]: 'c4',

0 commit comments

Comments
 (0)