Skip to content

Commit

Permalink
feat(ec2): support for m6in, m6idn, r6in and r6idn instance types in …
Browse files Browse the repository at this point in the history
…aws-ec2 (#27795)

The M6in, M6idn, R6in and R6idn instance types were [introduced](https://aws.amazon.com/about-aws/whats-new/2022/11/amazon-ec2-m6in-m6idn-r6in-r6idn-network-optimized-instances/) in November 2022.
The instance types are supported in [CloudFormation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-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
tam0ri committed Nov 2, 2023
1 parent af1f6bd commit 23b8f8f
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 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 @@ -158,6 +158,26 @@ export enum InstanceClass {
*/
R6ID = 'r6id',

/**
* Memory optimized instances for high performance computing powered by Intel Xeon Scalable processors (code named Ice Lake), 6th generation
*/
MEMORY6_INTEL_HIGH_PERFORMANCE = 'memory6-intel-high-performance',

/**
* Memory optimized instances for high performance computing powered by Intel Xeon Scalable processors (code named Ice Lake), 6th generation
*/
R6IN = 'r6in',

/**
* Memory optimized instances with local NVME drive for high performance computing powered by Intel Xeon Scalable processors (code named Ice Lake), 6th generation
*/
MEMORY6_INTEL_NVME_DRIVE_HIGH_PERFORMANCE = 'memory6-intel-nvme-drive-high-performance',

/**
* Memory optimized instances with local NVME drive for high performance computing powered by Intel Xeon Scalable processors (code named Ice Lake), 6th generation
*/
R6IDN = 'r6idn',

/**
* Memory optimized instances for high performance computing, 5th generation
*/
Expand Down Expand Up @@ -900,6 +920,26 @@ export enum InstanceClass {
*/
M6ID = 'm6id',

/**
* Standard instances for high performance computing powered by Intel Xeon Scalable processors (code named Ice Lake), 6th generation.
*/
STANDARD6_INTEL_HIGH_PERFORMANCE = 'standard6-intel-high-performance',

/**
* Standard instances for high performance computing powered by Intel Xeon Scalable processors (code named Ice Lake), 6th generation.
*/
M6IN = 'm6in',

/**
* Standard instances with local NVME drive for high performance computing powered by Intel Xeon Scalable processors (code named Ice Lake), 6th generation.
*/
STANDARD6_INTEL_NVME_DRIVE_HIGH_PERFORMANCE = 'standard6-intel-nvme-drive-high-performance',

/**
* Standard instances with local NVME drive for high performance computing powered by Intel Xeon Scalable processors (code named Ice Lake), 6th generation.
*/
M6IDN = 'm6idn',

/**
* Standard instances based on 3rd Gen AMD EPYC processors, 6th generation.
*/
Expand Down Expand Up @@ -1219,6 +1259,10 @@ export class InstanceType {
[InstanceClass.R6I]: 'r6i',
[InstanceClass.MEMORY6_INTEL_NVME_DRIVE]: 'r6id',
[InstanceClass.R6ID]: 'r6id',
[InstanceClass.MEMORY6_INTEL_HIGH_PERFORMANCE]: 'r6in',
[InstanceClass.R6IN]: 'r6in',
[InstanceClass.MEMORY6_INTEL_NVME_DRIVE_HIGH_PERFORMANCE]: 'r6idn',
[InstanceClass.R6IDN]: 'r6idn',
[InstanceClass.MEMORY5_HIGH_PERFORMANCE]: 'r5n',
[InstanceClass.R5N]: 'r5n',
[InstanceClass.MEMORY5_NVME_DRIVE]: 'r5d',
Expand Down Expand Up @@ -1355,6 +1399,10 @@ export class InstanceType {
[InstanceClass.M6I]: 'm6i',
[InstanceClass.STANDARD6_INTEL_NVME_DRIVE]: 'm6id',
[InstanceClass.M6ID]: 'm6id',
[InstanceClass.STANDARD6_INTEL_HIGH_PERFORMANCE]: 'm6in',
[InstanceClass.M6IN]: 'm6in',
[InstanceClass.STANDARD6_INTEL_NVME_DRIVE_HIGH_PERFORMANCE]: 'm6idn',
[InstanceClass.M6IDN]: 'm6idn',
[InstanceClass.STANDARD6_AMD]: 'm6a',
[InstanceClass.M6A]: 'm6a',
[InstanceClass.STANDARD6_GRAVITON2_NVME_DRIVE]: 'm6gd',
Expand Down

0 comments on commit 23b8f8f

Please sign in to comment.