From 039071dde0fe3bc40978e6f967a58ac63cbdda8f Mon Sep 17 00:00:00 2001 From: Tatsuya Mori Date: Wed, 25 Oct 2023 04:35:50 +0900 Subject: [PATCH] feat(ec2): support for i4g instance types in aws-ec2 (#27639) The I4g instance types were [introduced](https://aws.amazon.com/about-aws/whats-new/2023/05/amazon-ec2-i4g-storage-optimized-instances/?nc1=h_ls) in May 2023. The instance types are supported in [CloudFormation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instance.html#cfn-ec2-instance-instancetype). Closes #27631 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- 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..4da2094aa8f63 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', + /** + * Storage optimized instances powered by Graviton2 processor, 4th generation + */ + STORAGE4_GRAVITON = 'storage4_graviton', + + /** + * Storage 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.STORAGE4_GRAVITON]: 'i4g', + [InstanceClass.I4G]: 'i4g', [InstanceClass.STORAGE4_GRAVITON_NETWORK_OPTIMIZED]: 'im4gn', [InstanceClass.IM4GN]: 'im4gn', [InstanceClass.STORAGE4_GRAVITON_NETWORK_STORAGE_OPTIMIZED]: 'is4gen',