turbot/terraform_gcp_compliance

Query: spanner_database_drop_protection_enabled

Usage

powerpipe query terraform_gcp_compliance.query.spanner_database_drop_protection_enabled

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'enable_drop_protection')::boolean then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std -> 'enable_drop_protection')::boolean then ' drop protection enabled'
else ' drop protection disabled'
end || '.' as reason
, path || ':' || start_line
from
terraform_resource
where
type = 'google_spanner_database';

Controls

The query is being used by the following controls: