Skip to content

Commit 728af19

Browse files
chore(ec2): add M7gd, R7gd, C7gd instance types (#26776)
As of v2.92.0, we don't yet have C7gd, M7gd, and R7gd instance types available via instance type selection. Closes #26774 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 70c374f commit 728af19

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

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

+48
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,20 @@ export enum InstanceClass {
312312
*/
313313
R7G = 'r7g',
314314

315+
/**
316+
* Memory optimized instances, 7th generation with Graviton3 processors and local NVME drive
317+
*
318+
* This instance class is currently only available in US East (Ohio), US East (N. Virginia), US West (Oregon), and Europe (Ireland).
319+
*/
320+
MEMORY7_GRAVITON3_NVME_DRIVE = 'memory7-graviton3-nvme-drive',
321+
322+
/**
323+
* Memory optimized instances, 7th generation with Graviton3 processors and local NVME drive
324+
*
325+
* This instance class is currently only available in US East (Ohio), US East (N. Virginia), US West (Oregon), and Europe (Ireland).
326+
*/
327+
R7GD = 'r7gd',
328+
315329
/**
316330
* Compute optimized instances, 3rd generation
317331
*/
@@ -454,6 +468,20 @@ export enum InstanceClass {
454468
*/
455469
C6GD = 'c6gd',
456470

471+
/**
472+
* Compute optimized instances for high performance computing, 7th generation with Graviton3 processors and local NVME drive
473+
*
474+
* This instance class is currently only available in US East (Ohio), US East (N. Virginia), US West (Oregon), and Europe (Ireland).
475+
*/
476+
COMPUTE7_GRAVITON3_NVME_DRIVE = 'compute7-graviton3-nvme-drive',
477+
478+
/**
479+
* Compute optimized instances for high performance computing, 7th generation with Graviton3 processors and local NVME drive
480+
*
481+
* This instance class is currently only available in US East (Ohio), US East (N. Virginia), US West (Oregon), and Europe (Ireland).
482+
*/
483+
C7GD = 'c7gd',
484+
457485
/**
458486
* Compute optimized instances for high performance computing, 6th generation with Graviton2 processors
459487
* and high network bandwidth capabilities
@@ -864,6 +892,20 @@ export enum InstanceClass {
864892
*/
865893
M7G = 'm7g',
866894

895+
/**
896+
* Standard instances, 7th generation with Graviton3 processors and local NVME drive
897+
*
898+
* This instance class is currently only available in US East (Ohio), US East (N. Virginia), US West (Oregon), and Europe (Ireland).
899+
*/
900+
STANDARD7_GRAVITON3_NVME_DRIVE = 'standard7-graviton3-nvme-drive',
901+
902+
/**
903+
* Standard instances, 7th generation with Graviton3 processors and local NVME drive
904+
*
905+
* This instance class is currently only available in US East (Ohio), US East (N. Virginia), US West (Oregon), and Europe (Ireland).
906+
*/
907+
M7GD = 'm7gd',
908+
867909
/**
868910
* High memory and compute capacity instances, 1st generation
869911
*/
@@ -1143,6 +1185,8 @@ export class InstanceType {
11431185
[InstanceClass.R6GD]: 'r6gd',
11441186
[InstanceClass.MEMORY7_GRAVITON]: 'r7g',
11451187
[InstanceClass.R7G]: 'r7g',
1188+
[InstanceClass.MEMORY7_GRAVITON3_NVME_DRIVE]: 'r7gd',
1189+
[InstanceClass.R7GD]: 'r7gd',
11461190
[InstanceClass.COMPUTE3]: 'c3',
11471191
[InstanceClass.C3]: 'c3',
11481192
[InstanceClass.COMPUTE4]: 'c4',
@@ -1173,6 +1217,8 @@ export class InstanceType {
11731217
[InstanceClass.C6GN]: 'c6gn',
11741218
[InstanceClass.COMPUTE7_GRAVITON3]: 'c7g',
11751219
[InstanceClass.C7G]: 'c7g',
1220+
[InstanceClass.COMPUTE7_GRAVITON3_NVME_DRIVE]: 'c7gd',
1221+
[InstanceClass.C7GD]: 'c7gd',
11761222
[InstanceClass.STORAGE2]: 'd2',
11771223
[InstanceClass.D2]: 'd2',
11781224
[InstanceClass.STORAGE3]: 'd3',
@@ -1243,6 +1289,8 @@ export class InstanceType {
12431289
[InstanceClass.M6GD]: 'm6gd',
12441290
[InstanceClass.STANDARD7_GRAVITON]: 'm7g',
12451291
[InstanceClass.M7G]: 'm7g',
1292+
[InstanceClass.STANDARD7_GRAVITON3_NVME_DRIVE]: 'm7gd',
1293+
[InstanceClass.M7GD]: 'm7gd',
12461294
[InstanceClass.HIGH_COMPUTE_MEMORY1]: 'z1d',
12471295
[InstanceClass.Z1D]: 'z1d',
12481296
[InstanceClass.INFERENCE1]: 'inf1',

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ describe('instance', () => {
104104
test('instance architecture is correctly discerned for arm instances', () => {
105105
// GIVEN
106106
const sampleInstanceClasses = [
107-
'a1', 't4g', 'c6g', 'c7g', 'c6gd', 'c6gn', 'm6g', 'm6gd', 'm7g', 'r6g', 'r6gd', 'r7g', 'g5g', 'im4gn', 'is4gen', // current Graviton-based instance classes
107+
'a1', 't4g', 'c6g', 'c7g', 'c6gd', 'c6gn', 'c7g', 'c7gd', 'm6g', 'm6gd', 'm7g', 'm7gd', 'r6g', 'r6gd', 'r7g', 'r7gd', 'g5g', 'im4gn', 'is4gen', // current Graviton-based instance classes
108108
'a13', 't11g', 'y10ng', 'z11ngd', // theoretical future Graviton-based instance classes
109109
];
110110

0 commit comments

Comments
 (0)