turbot/aws_insights

Query: vpc_subnets_for_ec2_instance

Usage

powerpipe query aws_insights.query.vpc_subnets_for_ec2_instance

Steampipe Tables

SQL

select
subnet_id as subnet_id
from
aws_ec2_instance as i
where
i.account_id = split_part($1, ':', 5)
and i.region = split_part($1, ':', 4)
and arn = $1;