turbot/oci_insights

Query: kms_vault_age_report

Usage

powerpipe query oci_insights.query.kms_vault_age_report

SQL

select
v.display_name as "Display Name",
v.id as "OCID",
now()::date - v.time_created::date as "Age in Days",
v.time_created as "Create Time",
v.lifecycle_state as "Lifecycle State",
v.title as "Tenancy",
coalesce(c.title, 'root') as "Compartment",
v.region as "Region"
from
oci_kms_vault as v
left join oci_identity_compartment as c on v.compartment_id = c.id
left join oci_identity_tenancy as t on v.tenant_id = t.id
where
v.lifecycle_state <> 'DELETED'
order by
v.time_created,
v.display_name;

Dashboards

The query is used in the dashboards: