turbot/aws_insights

Query: iam_user_inline_policy_count_for_user

Usage

powerpipe query aws_insights.query.iam_user_inline_policy_count_for_user

Steampipe Tables

SQL

select
coalesce(jsonb_array_length(inline_policies), 0) as value,
'Inline Policies' as label,
case
when coalesce(jsonb_array_length(inline_policies), 0) = 0 then 'ok'
else 'alert'
end as type
from
aws_iam_user
where
arn = $1

Dashboards

The query is used in the dashboards: