From 777412db0317427084b34a477bd1e644b874bb0b Mon Sep 17 00:00:00 2001 From: Tatsuya Mori Date: Sun, 22 Oct 2023 12:06:05 +0000 Subject: [PATCH 1/2] feat(ec2): support for i4g instance types in aws-ec2 --- packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 53bf6b7fb32fd..ff35560e24537 100644 --- a/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts +++ b/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts @@ -596,6 +596,16 @@ export enum InstanceClass { */ I4I = 'i4i', + /** + * I/O-optimized instances powered by Graviton2 processor, 4th generation + */ + IO4_GRAVITON = 'io4_graviton', + + /** + * I/O-optimized instances powered by Graviton2 processor, 4th generation + */ + I4G = 'i4g', + /** * Storage optimized instances powered by Graviton2 processor, 4th generation */ @@ -1291,6 +1301,8 @@ export class InstanceType { [InstanceClass.I3]: 'i3', [InstanceClass.IO3_DENSE_NVME_DRIVE]: 'i3en', [InstanceClass.I3EN]: 'i3en', + [InstanceClass.IO4_GRAVITON]: 'i4g', + [InstanceClass.I4G]: 'i4g', [InstanceClass.STORAGE4_GRAVITON_NETWORK_OPTIMIZED]: 'im4gn', [InstanceClass.IM4GN]: 'im4gn', [InstanceClass.STORAGE4_GRAVITON_NETWORK_STORAGE_OPTIMIZED]: 'is4gen', From f40572e74dadf63abef64dacb26834f9495aceb4 Mon Sep 17 00:00:00 2001 From: Tatsuya Mori Date: Sun, 22 Oct 2023 12:14:15 +0000 Subject: [PATCH 2/2] change description from I/O-optimized to storage optimized. --- packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ff35560e24537..4da2094aa8f63 100644 --- a/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts +++ b/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts @@ -597,12 +597,12 @@ export enum InstanceClass { I4I = 'i4i', /** - * I/O-optimized instances powered by Graviton2 processor, 4th generation + * Storage optimized instances powered by Graviton2 processor, 4th generation */ - IO4_GRAVITON = 'io4_graviton', + STORAGE4_GRAVITON = 'storage4_graviton', /** - * I/O-optimized instances powered by Graviton2 processor, 4th generation + * Storage optimized instances powered by Graviton2 processor, 4th generation */ I4G = 'i4g', @@ -1301,7 +1301,7 @@ export class InstanceType { [InstanceClass.I3]: 'i3', [InstanceClass.IO3_DENSE_NVME_DRIVE]: 'i3en', [InstanceClass.I3EN]: 'i3en', - [InstanceClass.IO4_GRAVITON]: 'i4g', + [InstanceClass.STORAGE4_GRAVITON]: 'i4g', [InstanceClass.I4G]: 'i4g', [InstanceClass.STORAGE4_GRAVITON_NETWORK_OPTIMIZED]: 'im4gn', [InstanceClass.IM4GN]: 'im4gn',