Control: EC2 instances should be in a VPC
Deploy EC2 instances within a VPC to enable secure communication between an instance and other services within the VPC, without requiring an internet gateway, NAT device, or VPN connection.
Run the control in your terminal:
steampipe check aws_perimeter.control.ec2_instance_in_vpc
Snapshot and share results via Steampipe Cloud:
steampipe loginsteampipe check --share aws_perimeter.control.ec2_instance_in_vpc
Plugins & Tables
select arn as resource, case when vpc_id is null then 'alarm' else 'ok' end as status, case when vpc_id is null then title || ' not in VPC.' else title || ' in VPC.' end as reason, region, account_idfrom aws_ec2_instance;