diff --git a/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts b/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts index be22fd69957a1..4a09f956145f7 100644 --- a/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts +++ b/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts @@ -890,6 +890,16 @@ export enum InstanceClass { */ G5G = 'g5g', + /** + * Graphics-optimized instances, 6th generation + */ + GRAPHICS6 = 'graphics6', + + /** + * Graphics-optimized instances, 6th generation + */ + G6 = 'g6', + /** * Parallel-processing optimized instances, 2nd generation */ @@ -1568,6 +1578,8 @@ export class InstanceType { [InstanceClass.G5]: 'g5', [InstanceClass.GRAPHICS5_GRAVITON2]: 'g5g', [InstanceClass.G5G]: 'g5g', + [InstanceClass.GRAPHICS6]: 'g6', + [InstanceClass.G6]: 'g6', [InstanceClass.PARALLEL2]: 'p2', [InstanceClass.P2]: 'p2', [InstanceClass.PARALLEL3]: 'p3', diff --git a/packages/aws-cdk-lib/aws-ec2/test/instance.test.ts b/packages/aws-cdk-lib/aws-ec2/test/instance.test.ts index bdf7bead7673e..3947bd5481293 100644 --- a/packages/aws-cdk-lib/aws-ec2/test/instance.test.ts +++ b/packages/aws-cdk-lib/aws-ec2/test/instance.test.ts @@ -126,7 +126,7 @@ describe('instance', () => { }); test('instance architecture is correctly discerned for x86-64 instance', () => { // GIVEN - const sampleInstanceClasses = ['c5', 'm5ad', 'r5n', 'm6', 't3a', 'r6i', 'r6a', 'p4de', 'p5', 'm7i-flex']; // A sample of x86-64 instance classes + const sampleInstanceClasses = ['c5', 'm5ad', 'r5n', 'm6', 't3a', 'r6i', 'r6a', 'g6', 'p4de', 'p5', 'm7i-flex']; // A sample of x86-64 instance classes for (const instanceClass of sampleInstanceClasses) { // WHEN