Skip to content

Commit e9ba676

Browse files
authored
feat(ec2): support for m7a, r7a and c7a instance types in aws-ec2 (#27823)
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*
1 parent 5d7c1aa commit e9ba676

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts

+36
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,16 @@ export enum InstanceClass {
356356
*/
357357
R7IZ = 'r7iz',
358358

359+
/**
360+
* Memory optimized instances based on 4th generation AMD EPYC (codename Genoa), 7th generation
361+
*/
362+
MEMORY7_AMD = 'memory7-amd',
363+
364+
/**
365+
* Memory optimized instances based on 4th generation AMD EPYC (codename Genoa), 7th generation
366+
*/
367+
R7A = 'r7a',
368+
359369
/**
360370
* Compute optimized instances, 3rd generation
361371
*/
@@ -546,6 +556,16 @@ export enum InstanceClass {
546556
*/
547557
C7I = 'c7i',
548558

559+
/**
560+
* Compute optimized instances based on 4th generation AMD EPYC (codename Genoa), 7th generation
561+
*/
562+
COMPUTE7_AMD = 'compute7-amd',
563+
564+
/**
565+
* Compute optimized instances based on 4th generation AMD EPYC (codename Genoa), 7th generation
566+
*/
567+
C7A = 'c7a',
568+
549569
/**
550570
* Storage-optimized instances, 2nd generation
551571
*/
@@ -1020,6 +1040,16 @@ export enum InstanceClass {
10201040
*/
10211041
M7I_FLEX = 'm7i-flex',
10221042

1043+
/**
1044+
* Standard instances based on 4th generation AMD EPYC (codename Genoa), 7th generation
1045+
*/
1046+
STANDARD7_AMD = 'standard7-amd',
1047+
1048+
/**
1049+
* Standard instances based on 4th generation AMD EPYC (codename Genoa), 7th generation
1050+
*/
1051+
M7A = 'm7a',
1052+
10231053
/**
10241054
* High memory and compute capacity instances, 1st generation
10251055
*/
@@ -1307,6 +1337,8 @@ export class InstanceType {
13071337
[InstanceClass.R7GD]: 'r7gd',
13081338
[InstanceClass.MEMORY7_INTEL]: 'r7iz',
13091339
[InstanceClass.R7IZ]: 'r7iz',
1340+
[InstanceClass.MEMORY7_AMD]: 'r7a',
1341+
[InstanceClass.R7A]: 'r7a',
13101342
[InstanceClass.COMPUTE3]: 'c3',
13111343
[InstanceClass.C3]: 'c3',
13121344
[InstanceClass.COMPUTE4]: 'c4',
@@ -1343,6 +1375,8 @@ export class InstanceType {
13431375
[InstanceClass.C7GN]: 'c7gn',
13441376
[InstanceClass.COMPUTE7_INTEL]: 'c7i',
13451377
[InstanceClass.C7I]: 'c7i',
1378+
[InstanceClass.COMPUTE7_AMD]: 'c7a',
1379+
[InstanceClass.C7A]: 'c7a',
13461380
[InstanceClass.STORAGE2]: 'd2',
13471381
[InstanceClass.D2]: 'd2',
13481382
[InstanceClass.STORAGE3]: 'd3',
@@ -1427,6 +1461,8 @@ export class InstanceType {
14271461
[InstanceClass.M7I]: 'm7i',
14281462
[InstanceClass.STANDARD7_INTEL_FLEX]: 'm7i-flex',
14291463
[InstanceClass.M7I_FLEX]: 'm7i-flex',
1464+
[InstanceClass.STANDARD7_AMD]: 'm7a',
1465+
[InstanceClass.M7A]: 'm7a',
14301466
[InstanceClass.HIGH_COMPUTE_MEMORY1]: 'z1d',
14311467
[InstanceClass.Z1D]: 'z1d',
14321468
[InstanceClass.INFERENCE1]: 'inf1',

0 commit comments

Comments
 (0)