turbot/alicloud_insights

Query: ram_groups_without_policies

Usage

powerpipe query alicloud_insights.query.ram_groups_without_policies

Steampipe Tables

SQL

with groups_without_policies as (
select
title,
case
when jsonb_array_length(attached_policy) = 0 then 'no policies'
else 'with policies'
end as has_policies
from
alicloud_ram_group
)
select
has_policies,
count(*)
from
groups_without_policies
group by
has_policies;

Dashboards

The query is used in the dashboards: