-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(rds): change the default retention policy of Cluster and DB Instance #8023
feat(rds): change the default retention policy of Cluster and DB Instance #8023
Conversation
@jogold I would love to get your opinion on this change as well! |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Looks good. I just wonder if this change would better fit in aws-cdk/packages/@aws-cdk/core/lib/cfn-resource.ts Lines 102 to 105 in 6f75f22
|
@jogold thanks, you're probably right. Let me try to add the changes needed in I wanted to also ask you about the behavior for
However, in the current PR, I actually change that behavior: in the What is your opinion on this? Do the changes make sense to you, or should we instead by default simply have the same behavior CloudFormation has? |
Cluster
Stand-alone instanceYou are going from forcing For me |
@jogold thanks for the response. Some clarifications below:
Yes.
For instances created inside
Right. Here's my question then:
Would appreciate your thoughts on this topic! |
Sorry for the confusion, the same here meant going back to CF default. Since we have
It's not possible for a |
packages/@aws-cdk/aws-rds/lib/private/instance-deletion-policy.ts
Outdated
Show resolved
Hide resolved
419dd37
to
5a32b1a
Compare
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be a 'feat' change, i.e, do we want this listed in the 'Features' section of the changelog? I usually mark these as 'chore'. (breaking changes callout will be picked up either way)
Added 'do-not-merge' to address some comments here.
packages/@aws-cdk/aws-rds/lib/private/instance-deletion-policy.ts
Outdated
Show resolved
Hide resolved
…ance to Snapshot The 'Snapshot' retention policy is a special one used only for RDS. It deletes the underlying resource, but before doing that, creates a snapshot of it, so that the data is not lost. Use the 'Snapshot' policy instead of 'Retain', for the DatabaseCluster and DbInstance resources. Fixes aws#3298 BREAKING CHANGE: the default retention policy for RDS Cluster and DbInstance is now 'Snapshot'
5a32b1a
to
0351e7c
Compare
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Commit Message
feat(rds): change the default retention policy of Cluster and DB Instance
The 'Snapshot' retention policy is a special one used only for RDS.
It deletes the underlying resource, but before doing that,
creates a snapshot of it, so that the data is not lost.
Use the 'Snapshot' policy instead of 'Retain',
for the DatabaseCluster and DbInstance resources.
Fixes #3298
BREAKING CHANGE: the default retention policy for RDS Cluster and DbInstance is now 'Snapshot'
End Commit Message
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license