turbot/alicloud_insights

Query: kms_keys_for_oss_bucket

Usage

powerpipe query alicloud_insights.query.kms_keys_for_oss_bucket

SQL

select
k.arn as key_arn
from
alicloud_oss_bucket as b
left join alicloud_kms_key k
on b.server_side_encryption ->> 'KMSMasterKeyID' = k.key_id
where
b.arn = $1
and k.arn is not null;