turbot/aws_insights

Query: vpc_subnets_for_lambda_function

Usage

powerpipe query aws_insights.query.vpc_subnets_for_lambda_function

Steampipe Tables

SQL

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