turbot/alicloud_insights

Query: ram_user_direct_attached_policy_count_for_user

Usage

powerpipe query alicloud_insights.query.ram_user_direct_attached_policy_count_for_user

Steampipe Tables

SQL

select
count(*) as value,
'Direct Attached Policies' as label,
case when count(*) = 0 then 'ok' else 'alert' end as type
from
alicloud_ram_user
where
arn = $1
and attached_policy = '[]'
and account_id = split_part($1,':',4);

Dashboards

The query is used in the dashboards: