Control: DocumentDB clusters should have deletion protection enabled
Description
Ensure DocumentDB clusters have deletion protection enabled.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.docdb_cluster_deletion_protection_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.docdb_cluster_deletion_protection_enabled --share
SQL
This control uses a named query:
select arn as resource, case when deletion_protection then 'ok' else 'alarm' end status, case when deletion_protection then title || ' deletion protection enabled.' else title || ' deletion protection disabled.' end reason , region, account_idfrom aws_docdb_cluster;