From 6d989490c2d3e9639dc1e5f1e3c72a81c6368a45 Mon Sep 17 00:00:00 2001 From: maz Date: Sun, 22 Dec 2024 16:04:28 +0900 Subject: [PATCH 1/2] chore(rds): supports minors 11.4.4, 10.11.10, 10.6.20, 10.5.27 for RDS for MariaDB --- packages/aws-cdk-lib/aws-rds/lib/instance-engine.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/aws-cdk-lib/aws-rds/lib/instance-engine.ts b/packages/aws-cdk-lib/aws-rds/lib/instance-engine.ts index 4990eb6e9e3fa..256b062682bec 100644 --- a/packages/aws-cdk-lib/aws-rds/lib/instance-engine.ts +++ b/packages/aws-cdk-lib/aws-rds/lib/instance-engine.ts @@ -496,6 +496,8 @@ export class MariaDbEngineVersion { public static readonly VER_10_5_25 = MariaDbEngineVersion.of('10.5.25', '10.5'); /** Version "10.5.26". */ public static readonly VER_10_5_26 = MariaDbEngineVersion.of('10.5.26', '10.5'); + /** Version "10.5.27". */ + public static readonly VER_10_5_27 = MariaDbEngineVersion.of('10.5.27', '10.5'); /** Version "10.6" (only a major version, without a specific minor version). */ public static readonly VER_10_6 = MariaDbEngineVersion.of('10.6', '10.6'); @@ -543,6 +545,8 @@ export class MariaDbEngineVersion { public static readonly VER_10_6_18 = MariaDbEngineVersion.of('10.6.18', '10.6'); /** Version "10.6.19". */ public static readonly VER_10_6_19 = MariaDbEngineVersion.of('10.6.19', '10.6'); + /** Version "10.6.20". */ + public static readonly VER_10_6_20 = MariaDbEngineVersion.of('10.6.20', '10.6'); /** Version "10.11" (only a major version, without a specific minor version). */ public static readonly VER_10_11 = MariaDbEngineVersion.of('10.11', '10.11'); @@ -558,8 +562,12 @@ export class MariaDbEngineVersion { public static readonly VER_10_11_8 = MariaDbEngineVersion.of('10.11.8', '10.11'); /** Version "10.11.9". */ public static readonly VER_10_11_9 = MariaDbEngineVersion.of('10.11.9', '10.11'); + /** Version "10.11.10". */ + public static readonly VER_10_11_10 = MariaDbEngineVersion.of('10.11.10', '10.11'); /** Version "11.4.3". */ public static readonly VER_11_4_3 = MariaDbEngineVersion.of('11.4.3', '11.4'); + /** Version "11.4.4". */ + public static readonly VER_11_4_4 = MariaDbEngineVersion.of('11.4.4', '11.4'); /** * Create a new MariaDbEngineVersion with an arbitrary version. From 4698d70027ee209a62ee345452c5f9a07d425e80 Mon Sep 17 00:00:00 2001 From: maz Date: Sun, 22 Dec 2024 16:06:41 +0900 Subject: [PATCH 2/2] update unit tests --- packages/aws-cdk-lib/aws-rds/test/instance-engine.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/aws-cdk-lib/aws-rds/test/instance-engine.test.ts b/packages/aws-cdk-lib/aws-rds/test/instance-engine.test.ts index e0d4da51136e4..d914fee1eb43b 100644 --- a/packages/aws-cdk-lib/aws-rds/test/instance-engine.test.ts +++ b/packages/aws-cdk-lib/aws-rds/test/instance-engine.test.ts @@ -281,6 +281,7 @@ describe('instance engine', () => { ['10.5.24', rds.MariaDbEngineVersion.VER_10_5_24], ['10.5.25', rds.MariaDbEngineVersion.VER_10_5_25], ['10.5.26', rds.MariaDbEngineVersion.VER_10_5_26], + ['10.5.27', rds.MariaDbEngineVersion.VER_10_5_27], ['10.6', rds.MariaDbEngineVersion.VER_10_6], ['10.6.13', rds.MariaDbEngineVersion.VER_10_6_13], ['10.6.14', rds.MariaDbEngineVersion.VER_10_6_14], @@ -289,6 +290,7 @@ describe('instance engine', () => { ['10.6.17', rds.MariaDbEngineVersion.VER_10_6_17], ['10.6.18', rds.MariaDbEngineVersion.VER_10_6_18], ['10.6.19', rds.MariaDbEngineVersion.VER_10_6_19], + ['10.6.20', rds.MariaDbEngineVersion.VER_10_6_20], ['10.11', rds.MariaDbEngineVersion.VER_10_11], ['10.11.4', rds.MariaDbEngineVersion.VER_10_11_4], ['10.11.5', rds.MariaDbEngineVersion.VER_10_11_5], @@ -296,7 +298,9 @@ describe('instance engine', () => { ['10.11.7', rds.MariaDbEngineVersion.VER_10_11_7], ['10.11.8', rds.MariaDbEngineVersion.VER_10_11_8], ['10.11.9', rds.MariaDbEngineVersion.VER_10_11_9], + ['10.11.10', rds.MariaDbEngineVersion.VER_10_11_10], ['11.4.3', rds.MariaDbEngineVersion.VER_11_4_3], + ['11.4.4', rds.MariaDbEngineVersion.VER_11_4_4], ])('is passed correctly for %s', (engineVersion, version) => { // WHEN