turbot/aws_insights

Query: kms_key_age_table

Usage

powerpipe query aws_insights.query.kms_key_age_table

Steampipe Tables

SQL

select
k.id as "Key ID",
now() :: date - k.creation_date :: date as "Age in Days",
k.creation_date as "Creation Date",
k.key_state as "Key State",
k.key_manager as "Key Manager",
a.title as "Account",
k.account_id as "Account ID",
k.region as "Region",
k.arn as "ARN"
from
aws_kms_key as k,
aws_account as a
where
k.account_id = a.account_id
order by
k.creation_date,
k.id;

Dashboards

The query is used in the dashboards: