Other Articles

RDS DB Cluster – Retain Backups for 7 Days

Secure Configuration Checks > AWS

This check ensures that Amazon RDS DB clusters, such as Amazon Aurora clusters, keep automated backups for at least 7 days. The retention period sets how far back you can restore the cluster to a point in time. A short period leaves little time to notice and recover from data corruption, accidental deletes or ransomware.

Check Details

  • Resource: RDS DB Cluster
  • Check: Retain RDS cluster backups for 7 days (BackupRetentionSufficient)
  • Risk: Data lost or damaged more than a few days ago cannot be restored

Remediation via AWS Console

  1. Log in to the AWS Management Console and open the Amazon RDS console.

    Amazon RDS Console
  2. In the left navigation pane, click Databases. Select the DB cluster (the row with the role Regional cluster or Multi-AZ DB cluster) and click Modify.

    Modify an RDS DB cluster
  3. Expand Additional configuration. Under Backup, set Backup retention period to 7 days or more.

    Backup retention period of an RDS DB cluster
  4. Click Continue. Under Scheduling of modifications, choose Apply immediately.
  5. Click Modify cluster.
  6. Repeat steps 2 to 5 for every DB cluster with a retention period of less than 7 days.

Remediation via AWS CLI

  1. Log in to the AWS Management Console and click the CloudShell icon (>_) in the top-right corner.

    AWS CloudShell
  2. List the DB clusters with a retention period of less than 7 days. The output shows the cluster name, the retention period in days and the engine:

    aws rds describe-db-clusters \
    --query 'DBClusters[?BackupRetentionPeriod<`7`].[DBClusterIdentifier,BackupRetentionPeriod,Engine]' \
    --output text
    

    The command covers one region. Add --region <region> to check another.

  3. Set the retention period to 7 days or more:

    aws rds modify-db-cluster \
    --db-cluster-identifier <cluster-name> \
    --backup-retention-period 7 \
    --apply-immediately
    
  4. Verify the setting:

    aws rds describe-db-clusters \
    --db-cluster-identifier <cluster-name> \
    --query 'DBClusters[0].[DBClusterIdentifier,BackupRetentionPeriod]' \
    --output text
    

    The retention period must be 7 or higher.

Replace <cluster-name> with the identifier of the DB cluster, for example prod-aurora-cluster. Use a number higher than 7 for --backup-retention-period if your policy needs it, up to 35. Repeat steps 3 and 4 for each cluster that step 2 lists.

Updated on 05 November, 2026