turbot/aws_insights

Query: iam_role_inline_policy_count_for_role

Usage

powerpipe query aws_insights.query.iam_role_inline_policy_count_for_role

Steampipe Tables

SQL

select
case when inline_policies is null then 0 else jsonb_array_length(inline_policies) end as value,
'Inline Policies' as label,
case when inline_policies is null or jsonb_array_length(inline_policies) = 0 then 'ok' else 'alert' end as type
from
aws_iam_role
where
arn = $1
and account_id = split_part($1, ':', 5);

Dashboards

The query is used in the dashboards: