turbot/aws_insights

Query: vpc_security_groups_for_lambda_function

Usage

powerpipe query aws_insights.query.vpc_security_groups_for_lambda_function

Steampipe Tables

SQL

select
s as group_id
from
aws_lambda_function,
jsonb_array_elements_text(vpc_security_group_ids) as s
where
arn = $1
and account_id = split_part($1, ':', 5)
and region = split_part($1, ':', 4);