turbot/aws_insights

Query: iam_policies_for_iam_role

Usage

powerpipe query aws_insights.query.iam_policies_for_iam_role

Steampipe Tables

SQL

select
policy_arn
from
aws_iam_role,
jsonb_array_elements_text(attached_policy_arns) as policy_arn
where
arn = $1;