turbot/alicloud_insights

Query: oss_bucket_policy

Usage

powerpipe query alicloud_insights.query.oss_bucket_policy

Steampipe Tables

SQL

select
p -> 'Principal' as "Principal",
p -> 'Action' as "Action",
p ->> 'Effect' as "Effect",
p -> 'Resource' as "Resource",
policy ->> 'Version' as "Version"
from
alicloud_oss_bucket,
jsonb_array_elements(policy -> 'Statement') as p
where
arn = $1;