turbot/steampipe-mod-aws-compliance

Control: Auto Scaling launch config public IP should be disabled

Description

Ensure that AWS EC2 Auto Scaling groups have public IP addresses enabled through Launch Configurations. This rule is non-compliant if the Launch Configuration for an Auto Scaling group has AssociatePublicIpAddress set to 'true'.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.autoscaling_launch_config_public_ip_disabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.autoscaling_launch_config_public_ip_disabled --share

SQL

This control uses a named query:

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 || ' public IP enabled.'
else title || ' public IP disabled.'
end as reason
, region, account_id
from
aws_ec2_launch_configuration;

Tags