turbot/oci_insights

Query: kms_key_by_tenancy

Usage

powerpipe query oci_insights.query.kms_key_by_tenancy

SQL

select
t.name as "Tenancy",
count(k.id) :: numeric as "Keys"
from
oci_kms_key as k,
oci_identity_tenancy as t
where
t.id = k.tenant_id
group by
t.name
order by
t.name;

Dashboards

The query is used in the dashboards: