Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RDS database cdk #303

Merged
merged 2 commits into from
Jan 29, 2024
Merged

Update RDS database cdk #303

merged 2 commits into from
Jan 29, 2024

Conversation

Georges-GNM
Copy link
Contributor

@Georges-GNM Georges-GNM commented Jan 26, 2024

What does this change?

Makes the config slightly safer by adding deleteProtection and enabling us to delete backups in a straightforward manner if needed.

How to test

This has been put on code, we could verify the cfn was appropriately updated.

@@ -593,6 +593,7 @@ Object {
"DBSubnetGroupName": Object {
"Ref": "DatabaseSubnetGroup7D60F180",
},
"DeleteAutomatedBackups": false,
"DeletionProtection": true,
Copy link
Contributor

@jacobwinch jacobwinch Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting that DeletionProtection was already true in the generated CFN prior to our change here - looks like it is already being set (by aws-cdk) due to:

removalPolicy: RemovalPolicy.RETAIN

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting! I'd like to keep the 'deletionProtection' explicit though (i.e. this PR as-is)

@Georges-GNM Georges-GNM marked this pull request as ready for review January 29, 2024 10:32
@Georges-GNM Georges-GNM requested a review from a team as a code owner January 29, 2024 10:32
@Georges-GNM Georges-GNM merged commit 8c4e6fb into main Jan 29, 2024
1 check passed
@Georges-GNM Georges-GNM deleted the mob/add-devx-backup-tags branch January 29, 2024 10:32
@prout-bot
Copy link
Collaborator

Seen on PROD (merged by @Georges-GNM 5 minutes and 22 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants