turbot/alicloud_insights

Query: ram_all_policies_for_group

Usage

powerpipe query alicloud_insights.query.ram_all_policies_for_group

Steampipe Tables

SQL

select
policies ->> 'PolicyName' as "Name",
policies ->> 'PolicyType' as "Type",
policies ->> 'DefaultVersion' as "Default Version",
policies ->> 'AttachDate' as "Attachment Date"
from
alicloud_ram_group,
jsonb_array_elements(attached_policy) as policies
where
arn = $1
and account_id = split_part($1,':',4);

Dashboards

The query is used in the dashboards: