Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ec2): add missing instance types #29427

Merged
merged 10 commits into from
Mar 11, 2024
99 changes: 98 additions & 1 deletion packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,36 @@ export enum InstanceClass {
*/
MAC1 = 'mac1',

/**
* Macintosh instances built on Apple Mac mini 2020 computers, 2nd generation with Apple silicon M1 processors
*/
MACINTOSH2_M1 = 'macintosh2-m1',

/**
* Macintosh instances built on Apple Mac mini 2020 computers, 2nd generation with Apple silicon M1 processors
*/
MAC2 = 'mac2',

/**
* Macintosh instances built on Apple Mac mini 2023 computers, 2nd generation with Apple silicon M2 processors
*/
MACINTOSH2_M2 = 'macintosh2-m2',

/**
* Macintosh instances built on Apple Mac mini 2023 computers, 2nd generation with Apple silicon M2 processors
*/
MAC2_M2 = 'mac2-m2',

/**
* Macintosh instances built on Apple Mac mini 2023 computers, 2nd generation with Apple silicon M2 Pro processors
*/
MACINTOSH2_M2_PRO = 'macintosh2-m2-pro',

/**
* Macintosh instances built on Apple Mac mini 2023 computers, 2nd generation with Apple silicon M2 Pro processors
*/
MAC2_M2PRO = 'mac2-m2pro',

/**
* Multi-stream video transcoding instances for resolutions up to 4K UHD, 1st generation
*/
Expand All @@ -1130,6 +1160,36 @@ export enum InstanceClass {
*/
HPC6A = 'hpc6a',

/**
* High performance computing with local NVME drive based on 6th generation with Intel Xeon Scalable processors (3rd generation processors code named Ice Lake), 6th generation
*/
HIGH_PERFORMANCE_COMPUTING6_INTEL_NVME_DRIVE = 'high-performance-computing6-intel-nvme-drive',

/**
* High performance computing with local NVME drive based on 6th generation with Intel Xeon Scalable processors (3rd generation processors code named Ice Lake), 6th generation
*/
HPC6ID = 'hpc6id',

/**
* High performance computing based on Graviton, 7th generation
nmussy marked this conversation as resolved.
Show resolved Hide resolved
*/
HIGH_PERFORMANCE_COMPUTING7_AMD = 'high-performance-computing7-amd',

/**
* High performance computing based on Graviton, 7th generation
nmussy marked this conversation as resolved.
Show resolved Hide resolved
*/
HPC7A = 'hpc7a',

/**
* High performance computing based on Graviton, 7th generation
*/
HIGH_PERFORMANCE_COMPUTING7_GRAVITON = 'high-performance-computing7-graviton',

/**
* High performance computing based on Graviton, 7th generation
*/
HPC7G = 'hpc7g',

/**
* Deep learning instances powered by Gaudi accelerators from Habana Labs (an Intel company), 1st generation
*/
Expand Down Expand Up @@ -1261,14 +1321,39 @@ export enum InstanceSize {
XLARGE56 = '56xlarge',

/**
* Instance size XLARGE56 (112xlarge)
* Instance size XLARGE96 (96xlarge)
*/
XLARGE96 = '96xlarge',

/**
* Instance size XLARGE112 (112xlarge)
*/
XLARGE112 = '112xlarge',

/**
* Instance size METAL (metal)
*/
METAL = 'metal',

/**
* Instance size XLARGE16METAL (metal-16xl)
*/
XLARGE16METAL = 'metal-16xl',

/**
* Instance size XLARGE24METAL (metal-24xl)
*/
XLARGE24METAL = 'metal-24xl',

/**
* Instance size XLARGE32METAL (metal-32xl)
*/
XLARGE32METAL = 'metal-32xl',

/**
* Instance size XLARGE48METAL (metal-48xl)
*/
XLARGE48METAL = 'metal-48xl',
nmussy marked this conversation as resolved.
Show resolved Hide resolved
}

/**
Expand Down Expand Up @@ -1495,10 +1580,18 @@ export class InstanceType {
[InstanceClass.INF2]: 'inf2',
[InstanceClass.MACINTOSH1_INTEL]: 'mac1',
[InstanceClass.MAC1]: 'mac1',
[InstanceClass.MACINTOSH2_M1]: 'mac2',
[InstanceClass.MAC2]: 'mac2',
[InstanceClass.MACINTOSH2_M2]: 'mac2-m2',
[InstanceClass.MAC2_M2]: 'mac2-m2',
[InstanceClass.MACINTOSH2_M2_PRO]: 'mac2-m2pro',
[InstanceClass.MAC2_M2PRO]: 'mac2-m2pro',
[InstanceClass.VIDEO_TRANSCODING1]: 'vt1',
[InstanceClass.VT1]: 'vt1',
[InstanceClass.HIGH_PERFORMANCE_COMPUTING6_AMD]: 'hpc6a',
[InstanceClass.HPC6A]: 'hpc6a',
[InstanceClass.HIGH_PERFORMANCE_COMPUTING6_INTEL_NVME_DRIVE]: 'hpc6id',
[InstanceClass.HPC6ID]: 'hpc6id',
[InstanceClass.I4I]: 'i4i',
[InstanceClass.IO4_INTEL]: 'i4i',
[InstanceClass.X2IEDN]: 'x2iedn',
Expand All @@ -1507,6 +1600,10 @@ export class InstanceType {
[InstanceClass.MEMORY_INTENSIVE_2_INTEL]: 'x2idn',
[InstanceClass.X2IEZN]: 'x2iezn',
[InstanceClass.MEMORY_INTENSIVE_2_XTZ_INTEL]: 'x2iezn',
[InstanceClass.HIGH_PERFORMANCE_COMPUTING7_AMD]: 'hpc7a',
[InstanceClass.HPC7A]: 'hpc7a',
[InstanceClass.HIGH_PERFORMANCE_COMPUTING7_GRAVITON]: 'hpc7g',
[InstanceClass.HPC7G]: 'hpc7g',
[InstanceClass.DEEP_LEARNING1]: 'dl1',
[InstanceClass.DL1]: 'dl1',
};
Expand Down