turbot/aws_insights

Query: ec2_instances_for_vpc_security_group

Usage

powerpipe query aws_insights.query.ec2_instances_for_vpc_security_group

Steampipe Tables

SQL

select
arn as instance_arn
from
aws_ec2_instance as i,
jsonb_array_elements(security_groups) as sg
where
sg ->> 'GroupId' = $1;