aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

[aws-rds] Add BacktrackWindow prop to DatabaseCluster construct/ DatabaseClusterProps for Aurora DBs

Open michaelsimon opened this issue 6 years ago • 5 comments

Currently, you are unable to enable Backtrack when you are creating a new DatabaseCluster. And since you are unable to enable Backtrack after the Cluster has been created, the only way to enable it programmatically would require creating the Cluster in Cfn.

Use Case

Require this functionality to enhance backup/restore capabilities of an Aurora Cluster utilizing AWS CDK.

Proposed Solution

Add additional BackupWindow taking in a Duration as an additional DatabaseClusterProps.

Other

  • [ ] :wave: I may be able to implement this feature request
  • [ ] :warning: This feature might incur a breaking change

This is a :rocket: Feature Request

michaelsimon avatar Jul 31 '20 17:07 michaelsimon

Team, we need backtrack window parameter too in RDS CDK for DatabaseCluster. Is it being released soon?

vipulp86 avatar Jun 10 '21 09:06 vipulp86

It's been a while for this, any updates on when is going to be available?

Higherings avatar Jul 21 '21 22:07 Higherings

@Higherings no progress on our side. If you'd be willing to open us a Pull Request adding this, that would be amazing! Our "Contributing" guide: https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md.

In the meantime, you should be able to use escape hatches to enable this functionality.

skinny85 avatar Jul 21 '21 22:07 skinny85

To anybody coming across this from Google, the following is an example escape hatch:

const dbCluster = new DatabaseCluster(this, "my-rds-cluster", {
  ...
});

const dbClusterCfn = rds.node.defaultChild as CfnDBCluster;
dbClusterCfn.addPropertyOverride("BacktrackWindow", Duration.days(1).toSeconds());

jamesorlakin avatar Oct 26 '21 11:10 jamesorlakin

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Oct 26 '21 20:10 github-actions[bot]