diff --git a/packages/@aws-cdk/aws-ec2/lib/instance-types.ts b/packages/@aws-cdk/aws-ec2/lib/instance-types.ts index b303dbdcee201..29166deed10ab 100644 --- a/packages/@aws-cdk/aws-ec2/lib/instance-types.ts +++ b/packages/@aws-cdk/aws-ec2/lib/instance-types.ts @@ -753,6 +753,17 @@ export enum InstanceClass { */ P3DN = 'p3dn', + + /** + * Parallel-processing optimized instances with local NVME drive, extended, 4th generation (in developer preview) + */ + PARALLEL4_NVME_DRIVE_EXTENDED = 'parallel4-nvme-drive-extended', + + /** + * Parallel-processing optimized instances with local NVME drive, extended, 4th generation (in developer preview) + */ + P4DE = 'p4de', + /** * Parallel-processing optimized instances, 4th generation */ @@ -1171,6 +1182,8 @@ export class InstanceType { [InstanceClass.P3]: 'p3', [InstanceClass.PARALLEL3_NVME_DRIVE_HIGH_PERFORMANCE]: 'p3dn', [InstanceClass.P3DN]: 'p3dn', + [InstanceClass.PARALLEL4_NVME_DRIVE_EXTENDED]: 'p4de', + [InstanceClass.P4DE]: 'p4de', [InstanceClass.PARALLEL4]: 'p4d', [InstanceClass.P4D]: 'p4d', [InstanceClass.ARM1]: 'a1', diff --git a/packages/@aws-cdk/aws-ec2/test/instance.test.ts b/packages/@aws-cdk/aws-ec2/test/instance.test.ts index 37f0481bbd739..9d91fc4fde8d2 100644 --- a/packages/@aws-cdk/aws-ec2/test/instance.test.ts +++ b/packages/@aws-cdk/aws-ec2/test/instance.test.ts @@ -120,7 +120,7 @@ describe('instance', () => { }); test('instance architecture is correctly discerned for x86-64 instance', () => { // GIVEN - const sampleInstanceClasses = ['c5', 'm5ad', 'r5n', 'm6', 't3a', 'r6i', 'r6a']; // A sample of x86-64 instance classes + const sampleInstanceClasses = ['c5', 'm5ad', 'r5n', 'm6', 't3a', 'r6i', 'r6a', 'p4de']; // A sample of x86-64 instance classes for (const instanceClass of sampleInstanceClasses) { // WHEN