Skip to content

Commit 2ffc666

Browse files
feat(rds): retain automated backups for database cluster (aws#35372)
### Issue # (if applicable) None ### Reason for this change AWS RDS now supports for retaining automated backups when cluster is deleted. https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.Retaining.html ### Description of changes - Add `deleteAutomatedBackups` prop to `ClusterBaseProps`. ### Describe any new or updated permissions being added None ### Description of how you validated changes Added both unit and integ tests. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent c158e80 commit 2ffc666

14 files changed

+745
-1257
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.js.snapshot/aws-cdk-rds-integ-with-feature-flag.assets.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.js.snapshot/aws-cdk-rds-integ-with-feature-flag.template.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@
503503
"DBSubnetGroupName": {
504504
"Ref": "DatabaseSubnets56F17B9A"
505505
},
506+
"DeleteAutomatedBackups": false,
506507
"Engine": "aurora-mysql",
507508
"EngineVersion": "8.0.mysql_aurora.3.07.1",
508509
"KmsKeyId": {

packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.js.snapshot/aws-cdk-rds-integ.assets.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.js.snapshot/aws-cdk-rds-integ.template.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@
503503
"DBSubnetGroupName": {
504504
"Ref": "DatabaseSubnets56F17B9A"
505505
},
506+
"DeleteAutomatedBackups": false,
506507
"Engine": "aurora-mysql",
507508
"EngineVersion": "8.0.mysql_aurora.3.07.1",
508509
"KmsKeyId": {

packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.js.snapshot/cdk.out

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.js.snapshot/integ.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)