From 28465f54c9eb374a230b0792d07a64c4f721aeea Mon Sep 17 00:00:00 2001 From: Georges Lebreton Date: Fri, 26 Jan 2024 13:59:31 +0000 Subject: [PATCH 1/2] Removed backup params and specified deleteAutomatedBackups param --- cdk/lib/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cdk/lib/index.ts b/cdk/lib/index.ts index 248ac6c50..595bf5b04 100644 --- a/cdk/lib/index.ts +++ b/cdk/lib/index.ts @@ -307,7 +307,7 @@ EOF allocatedStorage: 50, allowMajorVersionUpgrade: false, autoMinorVersionUpgrade: true, - backupRetention: Duration.days(10), + deleteAutomatedBackups: false, engine: DatabaseInstanceEngine.postgres({ version: PostgresEngineVersion.VER_13, }), @@ -329,7 +329,6 @@ EOF ), multiAz: this.stage === "PROD", port: dbPort, - preferredBackupWindow: "02:00-02:30", preferredMaintenanceWindow: "Mon:06:30-Mon:07:00", securityGroups: [dbAccessSecurityGroup], storageEncrypted: true, From ca2e1923eae74ae7d4a06387db75b858e57f95e5 Mon Sep 17 00:00:00 2001 From: Georges Lebreton Date: Fri, 26 Jan 2024 14:00:32 +0000 Subject: [PATCH 2/2] Update snapshot --- cdk/lib/__snapshots__/index.test.ts.snap | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cdk/lib/__snapshots__/index.test.ts.snap b/cdk/lib/__snapshots__/index.test.ts.snap index b545f12ed..366738710 100644 --- a/cdk/lib/__snapshots__/index.test.ts.snap +++ b/cdk/lib/__snapshots__/index.test.ts.snap @@ -1457,13 +1457,13 @@ exports[`The typerighter stack matches the snapshot 1`] = ` "AllocatedStorage": "50", "AllowMajorVersionUpgrade": false, "AutoMinorVersionUpgrade": true, - "BackupRetentionPeriod": 10, "CopyTagsToSnapshot": true, "DBInstanceClass": "db.t4g.micro", "DBInstanceIdentifier": "typerighter-rule-manager-store-test", "DBSubnetGroupName": { "Ref": "DBSubnetGroup", }, + "DeleteAutomatedBackups": false, "DeletionProtection": true, "Engine": "postgres", "EngineVersion": "13", @@ -1473,7 +1473,6 @@ exports[`The typerighter stack matches the snapshot 1`] = ` }, "MultiAZ": false, "Port": "5432", - "PreferredBackupWindow": "02:00-02:30", "PreferredMaintenanceWindow": "Mon:06:30-Mon:07:00", "PubliclyAccessible": false, "StorageEncrypted": true,