Skip to content

Commit

Permalink
Merge pull request #303 from guardian/mob/add-devx-backup-tags
Browse files Browse the repository at this point in the history
Update RDS database cdk
  • Loading branch information
Georges-GNM authored Jan 29, 2024
2 parents 6dff034 + e9aa341 commit 8c4e6fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cdk/lib/__snapshots__/stack.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ Object {
"DBSubnetGroupName": Object {
"Ref": "DatabaseSubnetGroup7D60F180",
},
"DeleteAutomatedBackups": false,
"DeletionProtection": true,
"EnableIAMDatabaseAuthentication": true,
"Engine": "postgres",
Expand Down
2 changes: 2 additions & 0 deletions cdk/lib/stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 8c4e6fb

Please sign in to comment.