Skip to content

Commit

Permalink
feat(ec2): support for c7i and r7iz instance types in aws-ec2 (#27611)
Browse files Browse the repository at this point in the history
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*
  • Loading branch information
kevntao committed Oct 19, 2023
1 parent 1f7075f commit 382a0ed
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 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 @@ -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
*/
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 382a0ed

Please sign in to comment.