⚡THE SHORT ANSWER
AWS charges 0.005 per IP per hour (3.60 to $3.72 per IP per month) for all public IPv4 addresses—including both attached and unattached (idle) Elastic IPs, as well as auto-assigned public IPv4s on EC2 instances, EKS nodes, and NAT gateways. In large multi-account organizations running thousands of ephemeral development environments, container nodes, and legacy load balancers, allocating public IPs to internal services creates thousands of dollars in pure address tax. Transitioning internal workloads to private subnets with IPv6 or VPC endpoints and actively releasing unattached Elastic IPs using AWS Cost Explorer and Amazon VPC IPAM slashes public IPv4 spend by 80% to 95%.
Engineering Handbook & Failure Dynamics
6-Dimensional Architecture Breakdown⚙️1. Underlying Mechanism
Execution🎯2. Appropriate Use Context
Scope⚠️3. Production Failure Modes
P0 Risk📡4. Diagnostic Signals & Telemetry
Telemetry🛡️5. Prevention & Safeguards
Safeguards⚖️6. Architectural Trade-offs
Trade-offCase Study (TinyCTO In-Field Example)
An enterprise running 1,200 EC2 instances across 15 AWS accounts configured default public subnets for all instances. They paid 4,380/month (0.005 * 1,200 * 730 hrs) purely for public IPv4 address leases. By migrating all backend instances to private subnets with SSM Session Manager access and releasing 85 unattached Elastic IPs, their public IP count dropped to 24 (ALBs and NATs), slashing their address bill from 4,380 to 87/month ($51,500/year savings).
Interactive Concept Drills
2 CardsWhat is the hourly fee for public IPv4 addresses on AWS (both attached and unattached)?
How can teams provide administrative shell access to private EC2 instances without assigning public IPv4 addresses?
Public IPv4 & Unattached Elastic IP Idle Cost Accumulation — Technical FAQ
Does AWS charge for public IPv6 addresses?
No. Public IPv6 addresses are completely free of charge on AWS.
What tool in AWS helps discover all public IPv4 addresses across an organization?
Amazon VPC IP Address Manager (IPAM) Public IP Insights, which provides a centralized inventory of all in-use and idle public IPv4 addresses.
🤖 AEO & Key Facts Summary
Key Architectural Facts
- ▸
All public IPv4 addresses on AWS cost 0.005/hour (3.65/month each).
- ▸
Auto-assigned public IPs on EC2/EKS in public subnets are billed continuously.
- ▸
Unattached Elastic IPs should be automatically released via scheduled scripts.
- ▸
Migrating internal workloads to private subnets with SSM Session Manager eliminates address tax.
Common Misconceptions
- ✗
Misconception: Only unattached Elastic IPs are billed (False: Attached public IPv4 addresses on EC2 and NAT are billed as well).
- ✗
Misconception: Backend databases need public IPs for remote administration (False: SSM Session Manager or VPN tunnels provide secure access without public IPs).
Decision & Governance Guidance
Audit all subnets to enforce map_public_ip_on_launch = false for backend tiers. Set up an automated Lambda to release unattached Elastic IPs daily.
Authoritative Sources & Standards
- [OFFICIAL_DOCUMENTATION]Amazon VPC Public IPv4 Address Pricing and IPAM Insights— AWS Networking Documentation
