From a81eec66fecfc6dd27f3a4328888bd3f0c97b159 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 23 Dec 2024 19:21:56 -0500 Subject: [PATCH] feat(ec2): add c8g and m8g instance classes (#32528) ### 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* --- .../aws-cdk-lib/aws-ec2/lib/instance-types.ts | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts b/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts index 098bfdfa124cb..6b93e128b4bbf 100644 --- a/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts +++ b/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts @@ -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 @@ -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 * @@ -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', @@ -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',