From 41b2a51e11d87eac2d1ee2f2b5eb82cc18b35602 Mon Sep 17 00:00:00 2001 From: "Imtiaz Asad Bin, INI-DNA-DL" Date: Thu, 3 Oct 2024 19:31:05 +0200 Subject: [PATCH] feat(redshift-alpha): issue #31634: add support for RA3.large node type --- packages/@aws-cdk/aws-redshift-alpha/lib/cluster.ts | 5 +++++ packages/@aws-cdk/aws-redshift-alpha/test/cluster.test.ts | 4 ++-- packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/@aws-cdk/aws-redshift-alpha/lib/cluster.ts b/packages/@aws-cdk/aws-redshift-alpha/lib/cluster.ts index a47841324456d..07a7dc7692afe 100644 --- a/packages/@aws-cdk/aws-redshift-alpha/lib/cluster.ts +++ b/packages/@aws-cdk/aws-redshift-alpha/lib/cluster.ts @@ -49,6 +49,11 @@ export enum NodeType { */ DC2_8XLARGE = 'dc2.8xlarge', + /** + * ra3.large + */ + RA3_LARGE = 'ra3.large', + /** * ra3.xlplus */ diff --git a/packages/@aws-cdk/aws-redshift-alpha/test/cluster.test.ts b/packages/@aws-cdk/aws-redshift-alpha/test/cluster.test.ts index 0d4ee8ba951a2..cd10644e10c8c 100644 --- a/packages/@aws-cdk/aws-redshift-alpha/test/cluster.test.ts +++ b/packages/@aws-cdk/aws-redshift-alpha/test/cluster.test.ts @@ -671,7 +671,7 @@ describe('multi AZ cluster', () => { masterPassword: cdk.SecretValue.unsafePlainText('tooshort'), }, vpc, - nodeType: NodeType.RA3_XLPLUS, + nodeType: NodeType.RA3_LARGE, multiAz: true, }); @@ -684,7 +684,7 @@ describe('multi AZ cluster', () => { AutomatedSnapshotRetentionPeriod: 1, Encrypted: true, NumberOfNodes: 2, - NodeType: 'ra3.xlplus', + NodeType: 'ra3.large', DBName: 'default_db', PubliclyAccessible: false, ClusterSubnetGroupName: { Ref: 'RedshiftSubnetsDFE70E0A' }, diff --git a/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md b/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md index 2de4a12515cb1..d4030cf1e93f5 100644 --- a/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md +++ b/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md @@ -141,7 +141,7 @@ The following json shows the current recommended set of flags, as `cdk init` wou "@aws-cdk/aws-s3:keepNotificationInImportedBucket": false, "@aws-cdk/aws-ecs:reduceEc2FargateCloudWatchPermissions": true, "@aws-cdk/aws-ec2:ec2SumTImeoutEnabled": true, - "@aws-cdk/aws-appsync:appSyncGraphQLAPIScopeLambdaPermission": true + "@aws-cdk/aws-appsync:appSyncGraphQLAPIScopeLambdaPermission": true, "@aws-cdk/aws-rds:setCorrectValueForDatabaseInstanceReadReplicaInstanceResourceId": true } }