turbot/aws_insights

Query: iam_group_inline_policy_count_for_group

Usage

powerpipe query aws_insights.query.iam_group_inline_policy_count_for_group

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_group
where
arn = $1
and account_id = split_part($1, ':', 5);

Dashboards

The query is used in the dashboards: