AWS in 1 Min · Episode 42

AWS Elastic IPs explained

A public address you keep. Watch the one-minute video, then read the details.

David Gomez1:15 video · 3 min read

"An Elastic IP is free while you use it." That used to be true. Today AWS charges for every public IPv4 address by the hour, whether it is attached to a running server or sitting idle in your account. An Elastic IP is still a useful tool, but it is no longer something to collect without thinking.

What an Elastic IP is

An Elastic IP address is a static, public IPv4 address. You allocate it to your AWS account, and it stays yours until you release it. You then associate it with an EC2 instance or a network interface.

Why bother, when AWS can give an instance a public address automatically? Because the automatic one is not stable. When you stop and start an instance, AWS releases its public IPv4 address and assigns a new one. An Elastic IP does not change.

It can also move. If a server fails, you can remap the address to another instance in your account, and clients keep using the same address. That ability to mask a failure is the main reason AWS recommends Elastic IPs.

The rules to know

  • An Elastic IP belongs to one Region. It can't be moved to another Region.
  • Accounts start with a default quota of five Elastic IPs per Region. It is adjustable in Service Quotas, but AWS keeps it low on purpose: public IPv4 addresses are scarce.
  • Elastic IPs are IPv4 only.
  • A disassociated address stays allocated, and billed, until you release it.

What it costs

AWS charges for all public IPv4 addresses: the ones attached to running instances, the ones on load balancers and NAT gateways, and Elastic IPs that are in use or idle. The current hourly rate is on the Public IPv4 Address tab of the Amazon VPC pricing page.

A single address is cheap. Dozens of forgotten ones across several accounts and Regions are a steady leak. The common mistake is terminating a server and leaving its Elastic IP behind, where it keeps billing with nothing attached.

Two habits help:

  • Point users at a DNS name or a load balancer, not at a fixed address on one server.
  • Review public addresses regularly (Amazon VPC IP Address Manager offers a Public IP insights view) and release the ones you no longer need.

Where AI fits

AI services bring back an old requirement: the allow-list. A partner, a bank or a data provider will often only accept traffic from, or send traffic to, addresses they have approved. That needs addresses that never change.

  • Outbound: if your AI workload calls a partner's API from private subnets, send that traffic through a NAT gateway. A public NAT gateway uses an Elastic IP, so the partner sees one fixed source address per gateway.
  • Inbound: if partners call your AI service, an internet-facing Network Load Balancer can take one Elastic IP per Availability Zone, which gives it static addresses to publish.

Both patterns give you a small, stable list of addresses to share, without pinning anything to a single server.

Quick recap

  • An Elastic IP is a static public IPv4 address that is yours until you release it.
  • Every public IPv4 address is billed by the hour, attached or idle.
  • Keep them few: DNS names and load balancers for users, Elastic IPs where a fixed address is really required, and release the rest.
AWS in 1 Min #42 · 1:15

Need an AWS expert on your team?

I'm David, an AWS expert and fractional cloud consultant. I work alongside your team to run your cloud and infrastructure: architecture, security, cost and day-to-day operations. You get senior AWS experience when you need it, without the cost of a full-time hire.

  • Architecture reviews and a clear plan for what to fix first
  • Security hardening: IAM, networking, audits
  • Lower AWS bills without slowing your team down
  • Hands-on help with AI workloads on AWS