turbot/aws_compliance

Query: rds_db_instance_deletion_protection_enabled

Usage

powerpipe query aws_compliance.query.rds_db_instance_deletion_protection_enabled

Steampipe Tables

SQL

select
arn as resource,
case
when engine like any(array [ 'aurora%', 'docdb', 'neptune' ]) then 'skip'
when deletion_protection then 'ok'
else 'alarm'
end status,
case
when engine like any(array [ 'aurora%', 'docdb', 'neptune' ]) then title || ' has engine ' || engine || ' cluster, deletion protection is set at cluster level.'
when deletion_protection then title || ' deletion protection enabled.'
else title || ' deletion protection not enabled.'
end reason,
region,
account_id
from
aws_rds_db_instance;

Controls

The query is being used by the following controls: