turbot/aws_perimeter
GitHub
Loading controls...

Control: EC2 instances should be in a VPC

Description

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.

Usage

Run the control in your terminal:

steampipe check aws_perimeter.control.ec2_instance_in_vpc

Snapshot and share results via Steampipe Cloud:

steampipe login
steampipe check --share aws_perimeter.control.ec2_instance_in_vpc

Plugins & Tables

SQL

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_id
from
aws_ec2_instance;

Tags