Skip to content

Commit

Permalink
feat(ec2): support for m7a, r7a and c7a instance types in aws-ec2 (#2…
Browse files Browse the repository at this point in the history
…7823)

Some instance types with the 4th generation AMD EPYC processors (code name Genoa) were introduced.

- M7a was [introduced in August 2023](https://aws.amazon.com/about-aws/whats-new/2023/08/general-purpose-amazon-ec2-m7a-instances/)
- R7a was [introduced in September 2023](https://aws.amazon.com/about-aws/whats-new/2023/09/memory-optimized-amazon-ec2-r7a-instances/)
- C7a was [introduced in October 2023](https://aws.amazon.com/about-aws/whats-new/2023/10/compute-optimized-amazon-ec2-c7a-instances/)

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 6, 2023
1 parent 5d7c1aa commit e9ba676
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 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 @@ -356,6 +356,16 @@ export enum InstanceClass {
*/
R7IZ = 'r7iz',

/**
* Memory optimized instances based on 4th generation AMD EPYC (codename Genoa), 7th generation
*/
MEMORY7_AMD = 'memory7-amd',

/**
* Memory optimized instances based on 4th generation AMD EPYC (codename Genoa), 7th generation
*/
R7A = 'r7a',

/**
* Compute optimized instances, 3rd generation
*/
Expand Down Expand Up @@ -546,6 +556,16 @@ export enum InstanceClass {
*/
C7I = 'c7i',

/**
* Compute optimized instances based on 4th generation AMD EPYC (codename Genoa), 7th generation
*/
COMPUTE7_AMD = 'compute7-amd',

/**
* Compute optimized instances based on 4th generation AMD EPYC (codename Genoa), 7th generation
*/
C7A = 'c7a',

/**
* Storage-optimized instances, 2nd generation
*/
Expand Down Expand Up @@ -1020,6 +1040,16 @@ export enum InstanceClass {
*/
M7I_FLEX = 'm7i-flex',

/**
* Standard instances based on 4th generation AMD EPYC (codename Genoa), 7th generation
*/
STANDARD7_AMD = 'standard7-amd',

/**
* Standard instances based on 4th generation AMD EPYC (codename Genoa), 7th generation
*/
M7A = 'm7a',

/**
* High memory and compute capacity instances, 1st generation
*/
Expand Down Expand Up @@ -1307,6 +1337,8 @@ export class InstanceType {
[InstanceClass.R7GD]: 'r7gd',
[InstanceClass.MEMORY7_INTEL]: 'r7iz',
[InstanceClass.R7IZ]: 'r7iz',
[InstanceClass.MEMORY7_AMD]: 'r7a',
[InstanceClass.R7A]: 'r7a',
[InstanceClass.COMPUTE3]: 'c3',
[InstanceClass.C3]: 'c3',
[InstanceClass.COMPUTE4]: 'c4',
Expand Down Expand Up @@ -1343,6 +1375,8 @@ export class InstanceType {
[InstanceClass.C7GN]: 'c7gn',
[InstanceClass.COMPUTE7_INTEL]: 'c7i',
[InstanceClass.C7I]: 'c7i',
[InstanceClass.COMPUTE7_AMD]: 'c7a',
[InstanceClass.C7A]: 'c7a',
[InstanceClass.STORAGE2]: 'd2',
[InstanceClass.D2]: 'd2',
[InstanceClass.STORAGE3]: 'd3',
Expand Down Expand Up @@ -1427,6 +1461,8 @@ export class InstanceType {
[InstanceClass.M7I]: 'm7i',
[InstanceClass.STANDARD7_INTEL_FLEX]: 'm7i-flex',
[InstanceClass.M7I_FLEX]: 'm7i-flex',
[InstanceClass.STANDARD7_AMD]: 'm7a',
[InstanceClass.M7A]: 'm7a',
[InstanceClass.HIGH_COMPUTE_MEMORY1]: 'z1d',
[InstanceClass.Z1D]: 'z1d',
[InstanceClass.INFERENCE1]: 'inf1',
Expand Down

0 comments on commit e9ba676

Please sign in to comment.