Ensure that your Amazon DocumentDB (with MongoDB compatibility) database clusters have Deletion Protection feature enabled in order to protect them from being accidentally deleted.
This rule can help you work with the AWS Well-Architected Framework.
With Deletion Protection safety feature enabled, you have the guarantee that your Amazon DocumentDB database clusters can't be accidentally deleted and make sure that your data remains safe. Deletion protection prevents any existing or new database clusters from being deleted by any users through the AWS Management Console, AWS CLI, or AWS API calls, unless the feature is explicitly disabled within the cluster configuration.
Audit
To determine if your Amazon DocumentDB clusters are protected against accidental deletion, perform the following operations:
Remediation / Resolution
To enable Deletion Protection feature for your existing Amazon DocumentDB (with MongoDB compatibility) database clusters, perform the following operations:
References
- AWS Documentation
- Describing Amazon DocumentDB clusters
- Modifying an Amazon DocumentDB cluster
- Deleting an Amazon DocumentDB cluster
- AWS Command Line Interface (CLI) Documentation
- docdb
- describe-db-clusters
- modify-db-cluster