From 382a0edadfdb4f1e505f920cad05e3321bd5c017 Mon Sep 17 00:00:00 2001 From: Kevin Tao Date: Thu, 19 Oct 2023 11:26:58 -0700 Subject: [PATCH] feat(ec2): support for c7i and r7iz instance types in aws-ec2 (#27611) Support of C7i and R7iz EC2-Instance types in aws-ec2. The [C7i](https://aws.amazon.com/ec2/instance-types/c7i/) and the [R7iz](https://aws.amazon.com/ec2/instance-types/r7iz/) instance types were introduced in September 2023. Both instance types are confirmed to be supported in [AWS-Cloudformation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-instancetype). ---- *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 | 24 +++++++++++++++++++ 1 file changed, 24 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 97ba5060001c7..53bf6b7fb32fd 100644 --- a/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts +++ b/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts @@ -326,6 +326,16 @@ export enum InstanceClass { */ R7GD = 'r7gd', + /** + * Memory optimized instances based on Intel Xeon Scalable (Sapphire Rapids) processors, 7th generation + */ + MEMORY7_INTEL = 'memory7-intel', + + /** + * Memory optimized instances based on Intel Xeon Scalable (Sapphire Rapids) processors, 7th generation + */ + R7IZ = 'r7iz', + /** * Compute optimized instances, 3rd generation */ @@ -506,6 +516,16 @@ export enum InstanceClass { */ C7GN = 'c7gn', + /** + * Compute optimized instances based on Intel Xeon Scalable (Sapphire Rapids) processors, 7th generation + */ + COMPUTE7_INTEL = 'compute7-intel', + + /** + * Compute optimized instances based on Intel Xeon Scalable (Sapphire Rapids) processors, 7th generation + */ + C7I = 'c7i', + /** * Storage-optimized instances, 2nd generation */ @@ -1221,6 +1241,8 @@ export class InstanceType { [InstanceClass.R7G]: 'r7g', [InstanceClass.MEMORY7_GRAVITON3_NVME_DRIVE]: 'r7gd', [InstanceClass.R7GD]: 'r7gd', + [InstanceClass.MEMORY7_INTEL]: 'r7iz', + [InstanceClass.R7IZ]: 'r7iz', [InstanceClass.COMPUTE3]: 'c3', [InstanceClass.C3]: 'c3', [InstanceClass.COMPUTE4]: 'c4', @@ -1255,6 +1277,8 @@ export class InstanceType { [InstanceClass.C7GD]: 'c7gd', [InstanceClass.COMPUTE7_GRAVITON3_HIGH_NETWORK_BANDWIDTH]: 'c7gn', [InstanceClass.C7GN]: 'c7gn', + [InstanceClass.COMPUTE7_INTEL]: 'c7i', + [InstanceClass.C7I]: 'c7i', [InstanceClass.STORAGE2]: 'd2', [InstanceClass.D2]: 'd2', [InstanceClass.STORAGE3]: 'd3',