turbot/aws_perimeter
GitHub
Loading controls...

Control: Auto Scaling launch configs should not associate public IP addresses to instances

Description

Ensure that EC2 Auto Scaling launch configurations do not associate public IP addresses to Auto Scaling group instances.

Usage

Run the control in your terminal:

steampipe check aws_perimeter.control.autoscaling_launch_config_public_ip_disabled

Snapshot and share results via Steampipe Cloud:

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

Plugins & Tables

SQL

select
launch_configuration_arn as resource,
case
when associate_public_ip_address then 'alarm'
else 'ok'
end as status,
case
when associate_public_ip_address then title || ' associate public IP addresses.'
else title || ' do not associate public IP addresses.'
end as reason,
region,
account_id
from
aws_ec2_launch_configuration;

Tags