This rule ensures that backtracking is enabled for Amazon Aurora clusters.
Rule | Amazon Aurora clusters should have backtracking enabled |
Framework | AWS Foundational Security Best Practices |
Severity | ✔ Medium |
Rule/Policy Description:
The rule/policy states that Amazon Aurora clusters should have backtracking enabled. Backtracking allows for the recovery of an Amazon Aurora DB cluster to a specific point in time. Enabling backtracking is crucial for adhering to AWS Foundational Security Best Practices as it helps protect against accidental data loss or corruption.
Troubleshooting Steps:
If backtracking is not enabled on your Amazon Aurora cluster, you might encounter the following issues:
Data Loss: Without backtracking, it becomes challenging to recover data in case of accidental deletion or corruption.
Ransomware Attacks: In the event of a ransomware attack, backtracking enables you to roll back the cluster to a point before the attack occurred, minimizing the impact.
To ensure backtracking is enabled, follow the remediation steps below.
Necessary Codes:
There are no specific codes provided for this rule/policy. Instead, the remediation involves a series of steps using the AWS Management Console or AWS Command Line Interface (CLI).
Remediation Steps:
To enable backtracking for an Amazon Aurora cluster, follow the steps below:
Step 1: Access AWS Management Console
Step 2: Navigate to Amazon RDS
Step 3: Select your Aurora cluster
Step 4: Enable Backtracking
Click on the "Modify" button in the upper-right corner of the cluster details page.
Scroll down to the "Backup" section.
Under "Backup retention period", set a period for which you want to retain backups. This should be within the maximum allowed period based on your requirements.
Enable the "Backtrack" option.
Step 5: Save Changes
Review your changes and ensure that backtracking is enabled and the backup retention period is sufficient for your needs.
Click on the "Apply immediately" checkbox to apply the changes right away.
Click on the "Modify cluster" button to save the changes.
Step 6: Verify Backtracking
After the modification is complete, return to the cluster details page.
Scroll down to the "Backtrack" section and verify that the status is now "Enabled".
Command Line Interface (CLI) Guide:
If you prefer using the AWS Command Line Interface (CLI) to enable backtracking for an Amazon Aurora cluster, follow the steps below:
Open the command prompt or terminal on your machine.
Run the following command to enable backtracking for your Aurora cluster:
aws rds modify-db-cluster --db-cluster-identifier <your-cluster-identifier> --backup-retention-period <retention-period-in-days> --backtrack-window <backtrack-window-in-seconds>
Note: Replace
<your-cluster-identifier>
with the identifier of your Amazon Aurora cluster. Also, set the <retention-period-in-days>
and <backtrack-window-in-seconds>
based on your requirements.aws rds describe-db-clusters --db-cluster-identifier <your-cluster-identifier>
You should see the backtracking status as "Enabled" in the output.
By following the above steps, you can enable backtracking for your Amazon Aurora cluster, ensuring compliance with AWS Foundational Security Best Practices.