Description
The retention period determines how far back you can restore an Aurora cluster. Seven days is an example policy baseline. Aurora supports shorter periods.
Potential impact
If corruption is discovered after the last good recovery point expires, you may have to reconstruct the data.
Remediation
Set BackupRetentionPeriod to cover the time it can take to detect corruption and meet your recovery and retention policies. If your policy requires seven days or more, verify that a point in that window restores to a new cluster.
Examples
The Aurora MySQL example increases retention from 3 to 16 days and keeps the same backup window.
Before
yaml
Resources:
DatabaseCluster:
Type: "AWS::RDS::DBCluster"
Properties:
Engine: aurora-mysql
StorageEncrypted: true
BackupRetentionPeriod: 3
PreferredBackupWindow: '12:00-13:00'
After
yaml
Resources:
DatabaseCluster:
Type: "AWS::RDS::DBCluster"
Properties:
Engine: aurora-mysql
StorageEncrypted: true
BackupRetentionPeriod: 16
PreferredBackupWindow: '12:00-13:00'