turbot/alicloud_insights

Query: ram_groups_with_no_attached_policy_count

Usage

powerpipe query alicloud_insights.query.ram_groups_with_no_attached_policy_count

Steampipe Tables

SQL

select
count(*) as value,
'With No Policies' as label,
case
when jsonb_array_length(attached_policy) = 0 then 'alert'
else 'ok'
end as type
from
alicloud_ram_group
group by
attached_policy

Dashboards

The query is used in the dashboards: