turbot/aws_insights

Query: iam_roles_for_lambda_function

Usage

powerpipe query aws_insights.query.iam_roles_for_lambda_function

Steampipe Tables

SQL

select
role as role_arn
from
aws_lambda_function
where
arn = $1
and account_id = split_part($1, ':', 5)
and region = split_part($1, ':', 4);