turbot/aws_insights

Query: kms_cmk_pending_deletion_count

Usage

powerpipe query aws_insights.query.kms_cmk_pending_deletion_count

Steampipe Tables

SQL

select
count(*) as value,
'Pending Deletion' as label,
case count(*) when 0 then 'ok' else 'alert' end as type
from
aws_kms_key
where
key_state = 'PendingDeletion'
and key_manager = 'CUSTOMER';

Dashboards

The query is used in the dashboards: