turbot/alicloud_insights

Query: kms_key_age

Usage

powerpipe query alicloud_insights.query.kms_key_age

Steampipe Tables

SQL

select
creation_date as "Creation Date",
delete_date as "Deletion Date",
extract(day from delete_date - current_date)::int as "Deleting After Days"
from
alicloud_kms_key
where
arn = $1
and account_id = split_part($1,':',4)
and region = split_part($1,':',3);

Dashboards

The query is used in the dashboards: