Checks that Amazon Redshift clusters have automated snapshots enabled, ensuring data recoverability.
Rule | Amazon Redshift clusters should have automatic snapshots enabled |
Framework | AWS Foundational Security Best Practices |
Severity | ✔ Medium |
Rule Description:
Amazon Redshift clusters should have automatic snapshots enabled as part of AWS Foundational Security Best Practices to ensure that data is regularly backed up and can be restored in case of any disasters or data corruption.
Troubleshooting Steps:
If automatic snapshots are not enabled for the Amazon Redshift cluster, follow these steps to enable them:
Remediation:
To enable automatic snapshots for an Amazon Redshift cluster, follow these steps:
Relevant Code:
If you prefer to enable automatic snapshots using the AWS CLI, you can use the following command:
aws redshift modify-cluster --cluster-identifier YOUR_CLUSTER_ID --automated-snapshot-retention-period YOUR_RETENTION_PERIOD --preferred-maintenance-window YOUR_MAINTENANCE_WINDOW
Make sure to replace YOUR_CLUSTER_ID, YOUR_RETENTION_PERIOD, and YOUR_MAINTENANCE_WINDOW with the appropriate values.
By following these steps and enabling automatic snapshots for Amazon Redshift clusters, you can ensure that your data is regularly backed up and secure against any potential data loss scenarios.