turbot/aws_insights

Query: ec2_instances_for_vpc

Usage

powerpipe query aws_insights.query.ec2_instances_for_vpc

Steampipe Tables

SQL

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