An Elastic IP is a static public IPv4 address allocated to your AWS account. Associating one with an EC2 instance gives you a predictable address for SSH, HTTP, or DNS records.
What problem does it solve?
Auto-assigned public IPv4 addresses can change when you replace an instance or across some stop/start workflows. An Elastic IP stays with your account until you release it, so allow lists and DNS A records change less often.
When should you use Elastic IP?
Use it for single-instance labs, SSH admin access, and simple DNS pointing at one VM. For scaled HTTP traffic, prefer an Application Load Balancer or CloudFront and point DNS there instead.
What you will do
Allocate an Elastic IP in the EC2 console, associate it with a running instance from the launch guide, then confirm the public IPv4 on the Instances page.
IPv4 vs IPv6
This walkthrough is the classic IPv4 Elastic IP flow. VPC IPv6 uses different patterns (for example /56 prefixes)—see a dedicated IPv6 on VPC guide when you standardize on IPv6.
Stable address, same Region.
Allocate and associate in the same Region as the instance. Elastic IPs are not global floating addresses across Regions.
Idle Elastic IPs can bill.
AWS typically does not charge for an Elastic IP hour while it is associated with a running instance. You are usually charged when it is allocated but not attached to a running instance. Confirm rates on the EC2 pricing pages.
Next after association.
SSH with PuTTY (or OpenSSH) using the new public IPv4, then upload with FileZilla.
Reference
Core Concepts
Terms you will use while attaching a static address:
Concept
Meaning
Elastic IP (EIP)
Static public IPv4 allocated to your account in a Region
Allocate
Reserve an address from Amazon’s pool into your account
Associate
Bind the EIP to an instance (or ENI) private IP
Disassociate
Unbind so you can remap or release the address
Release
Return the address to AWS; you lose that IPv4
ENI
Elastic Network Interface — the EIP attaches here
Auto-assigned public IP
Ephemeral IPv4 that can change across stop/start without EIP
Remap
Move the same public IPv4 to a replacement instance
Before you start
Prerequisites
Have these ready before you allocate:
An AWS account with permission to allocate and associate Elastic IPs.
A running EC2 instance in the same Region (for example from the EC2 launch guide).
Confirm the instance shows the Elastic IP as its Public IPv4 address (or check the Networking tab).
Use that address for PuTTY / SSH and later DNS records.
Amazon EC2
How It Works
The public IPv4 column should now match the Elastic IP you allocated.
Stop/start with the association kept usually preserves that public IPv4.
DNS A records should point at this stable address, not an ephemeral one.
Tear down labs: disassociate and release so idle EIPs do not keep billing.
Edge Cases & Pitfalls
Most EIP issues are Region mismatch, idle billing, or assuming one IP can hit many instances.
region
EIP and instance in different Regions
You cannot associate across Regions. Switch the console Region so both resources match.
billing
Charges while the instance is stopped
An Elastic IP attached to a stopped instance is typically treated as unused and can bill. Release or reassociate when you tear down labs.
scale
Expecting one EIP to hit a fleet
One EIP maps to one ENI. Use an ALB or similar for multi-instance HTTP.
dns
A record still points at the old IP
After association, update Route 53 (or your DNS host) to the Elastic IP and wait for TTL.
quota
Allocate fails with a limit error
Default Elastic IP quotas are low. Release unused addresses or request a Service Quotas increase.
ssh
SSH still times out after association
EIP does not open ports. Confirm the security group allows TCP 22 from your IP and the instance is Running.
Remember
Key Takeaways
Allocate then Associate: EC2 → Elastic IPs → bind to your instance.
Stable IPv4: use EIP when DNS or firewalls need a fixed address.
Remap when needed: disassociate and attach to a replacement instance.
Release idle addresses: unattached EIPs can bill and consume quota.
One line: allocate an Elastic IP, associate it with your running instance, release it when the lab ends.
Frequently Asked Questions
An Elastic IP is a static public IPv4 address allocated to your account. You can associate it with an EC2 instance (or certain other resources) and remap it to another instance when you need to change targets without updating DNS.
When an Elastic IP is associated with a running EC2 instance, there is typically no separate hourly charge for the Elastic IP itself. AWS charges for Elastic IP addresses that are allocated but not associated with a running instance, for example when they are unattached or attached to a stopped instance. Check current EC2 pricing for your Region.
By default, the auto-assigned public IPv4 can change across stop/start cycles. Associating an Elastic IP gives you a stable public IPv4 that moves with the association you configure.
A single Elastic IP associates to one network interface at a time. To spread traffic across many instances, use a load balancer or other routing tier instead of sharing one Elastic IP across multiple targets simultaneously.
Disassociate if needed, then release them in the EC2 console so idle addresses do not accrue charges and do not count against your Region quota.
Often no for end-user HTTP/HTTPS. Point DNS at the load balancer (or CloudFront) instead. Elastic IP is still useful for SSH admin access or small single-instance labs.