turbot/aws_insights

Query: iam_roles_for_redshift_cluster

Usage

powerpipe query aws_insights.query.iam_roles_for_redshift_cluster

Steampipe Tables

SQL

select
r ->> 'IamRoleArn' as role_arn
from
aws_redshift_cluster,
jsonb_array_elements(iam_roles) as r
where
arn = $1
and account_id = split_part($1, ':', 5)
and region = split_part($1, ':', 4);