You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rules flagging avoidable public IPv4 usage: subnets auto-assigning public IPs to workloads behind load balancers, and instances holding public IPs they don't need.
Why
Since February 2024 every in-use public IPv4 address bills $0.005/hr (~$3.65/mo). Trivial per address, material at fleet scale — hundreds of instances auto-assigned public IPs behind an ALB is a pure-waste line item AWS now reports on precisely because it's so common.
Details
Subnet with MapPublicIpOnLaunch: true — IaC review rule (Terraform map_public_ip_on_launch / CloudFormation AWS::EC2::Subnet); review severity since some subnets legitimately need it.
Instance with associate_public_ip_address: true (IaC) or an in-use public IP (discovery) while registered behind a load balancer target group — the LB terminates ingress, so the instance IP is typically unnecessary.
Extends packages/rules/src/aws/ec2/; complements CLDBRN-AWS-EC2-3 (unassociated Elastic IPs), which covers the idle IP case — these cover the in-use but unnecessary case.
What
Rules flagging avoidable public IPv4 usage: subnets auto-assigning public IPs to workloads behind load balancers, and instances holding public IPs they don't need.
Why
Since February 2024 every in-use public IPv4 address bills $0.005/hr (~$3.65/mo). Trivial per address, material at fleet scale — hundreds of instances auto-assigned public IPs behind an ALB is a pure-waste line item AWS now reports on precisely because it's so common.
Details
MapPublicIpOnLaunch: true— IaC review rule (Terraformmap_public_ip_on_launch/ CloudFormationAWS::EC2::Subnet); review severity since some subnets legitimately need it.associate_public_ip_address: true(IaC) or an in-use public IP (discovery) while registered behind a load balancer target group — the LB terminates ingress, so the instance IP is typically unnecessary.packages/rules/src/aws/ec2/; complementsCLDBRN-AWS-EC2-3(unassociated Elastic IPs), which covers the idle IP case — these cover the in-use but unnecessary case.