From 81e5adc9e9cfd5abb9de25fa8de02ed9f1c82e98 Mon Sep 17 00:00:00 2001 From: Georges Lebreton Date: Fri, 26 Jan 2024 14:15:18 +0000 Subject: [PATCH] Update RDS database cdk --- cdk/lib/__snapshots__/stack.test.ts.snap | 1 + cdk/lib/stack.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cdk/lib/__snapshots__/stack.test.ts.snap b/cdk/lib/__snapshots__/stack.test.ts.snap index a404f621..5e58d1dc 100644 --- a/cdk/lib/__snapshots__/stack.test.ts.snap +++ b/cdk/lib/__snapshots__/stack.test.ts.snap @@ -593,6 +593,7 @@ Object { "DBSubnetGroupName": Object { "Ref": "DatabaseSubnetGroup7D60F180", }, + "DeleteAutomatedBackups": false, "DeletionProtection": true, "EnableIAMDatabaseAuthentication": true, "Engine": "postgres", diff --git a/cdk/lib/stack.ts b/cdk/lib/stack.ts index 2b67241e..b53cb229 100644 --- a/cdk/lib/stack.ts +++ b/cdk/lib/stack.ts @@ -109,6 +109,8 @@ export class PinBoardStack extends GuStack { ), multiAz: isPROD, publiclyAccessible: false, + deleteAutomatedBackups: false, + deletionProtection: true, removalPolicy: RemovalPolicy.RETAIN, }); Tags.of(database).add("devx-backup-enabled", "true");