turbot/aws_insights

Query: kms_key_age

Usage

powerpipe query aws_insights.query.kms_key_age

Steampipe Tables

SQL

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

Dashboards

The query is used in the dashboards: