Skip to content

Commit

Permalink
feat(ec2): support of m7i and m7i-flex ec2-instancetypes (#27156)
Browse files Browse the repository at this point in the history
Support of M7i and M7i-flex EC2-Instancetypes.
They were introduced [here](https://aws.amazon.com/de/ec2/instance-types/m7i/) and are also integrated in [AWS-Cloudformation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#aws-properties-ec2-instance-properties:~:text=medium%20%7C%20m7gd.xlarge-,%7C%20m7i%2Dflex.2xlarge,-%7C%20m7i%2Dflex.4xlarge)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
xXPOLYGONXx authored Sep 15, 2023
1 parent 452b868 commit fe0955f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 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 @@ -918,6 +918,28 @@ export enum InstanceClass {
*/
M7GD = 'm7gd',

/**
* Standard instances with high memory and compute capacity based on Intel Xeon Scalable (Sapphire Rapids) processors, 7th generation
*/
STANDARD7_INTEL = 'standard7-intel',

/**
* Standard instances with high memory and compute capacity based on Intel Xeon Scalable (Sapphire Rapids) processors, 7th generation
*/
M7I = 'm7i',

/**
* Flexible instances with high memory and compute capacity based on Intel Xeon Scalable (Sapphire Rapids) processors, 7th generation
* The M7i-Flex instances deliver a baseline of 40% CPU performance, and can scale up to full CPU performance 95% of the time
*/
STANDARD7_INTEL_FLEX = 'standard7-intel-flex',

/**
* Flexible instances with high memory and compute capacity based on Intel Xeon Scalable (Sapphire Rapids) processors, 7th generation
* The M7i-Flex instances deliver a baseline of 40% CPU performance, and can scale up to full CPU performance 95% of the time
*/
M7I_FLEX = 'm7i-flex',

/**
* High memory and compute capacity instances, 1st generation
*/
Expand Down Expand Up @@ -1305,6 +1327,10 @@ export class InstanceType {
[InstanceClass.M7G]: 'm7g',
[InstanceClass.STANDARD7_GRAVITON3_NVME_DRIVE]: 'm7gd',
[InstanceClass.M7GD]: 'm7gd',
[InstanceClass.STANDARD7_INTEL]: 'm7i',
[InstanceClass.M7I]: 'm7i',
[InstanceClass.STANDARD7_INTEL_FLEX]: 'm7i-flex',
[InstanceClass.M7I_FLEX]: 'm7i-flex',
[InstanceClass.HIGH_COMPUTE_MEMORY1]: 'z1d',
[InstanceClass.Z1D]: 'z1d',
[InstanceClass.INFERENCE1]: 'inf1',
Expand Down

0 comments on commit fe0955f

Please sign in to comment.