DEV Community

Pavol Z. Kutaj
Pavol Z. Kutaj

Posted on

Explaining Elastic IP Addresses in AWS

The aim of this page is to explain AWS Elastic IPs and their uses. I was under the incorrect impression that elasticity means that IPs are changing. Wrong! What's changing is a network resource using that IP, say in a crash a new resource can use the same address quickly. The amount of EIP in a VPC/region is pretty small actually - just 5. Having a case then I need to increase that limit to 7 when deploying resources. Some notes further down:

  • Error Handling: Indeed, the AddressLimitExceeded error occurs when the maximum EIP limit is reached.
  • Default Limit: AWS allows up to 5 EIPs per region by default.
  • Static IP: A static IP does not change over time; useful for consistent access.
  • Elastic IP (EIP): A static IP that can be reassigned to different instances dynamically.
  • High Availability: EIPs mask instance failures by quickly remapping to another instance.
  • Consistent DNS Setup: EIPs ensure DNS names point to the same IP, even if the instance changes.
  • Load Balancing: EIPs help maintain high availability and reliability for services.
  • Elasticity: Elasticity refers to the reassignment capability of an EIP, not changing the IP value.
  • Usage with NAT Gateways: NAT gateways can use EIPs for outbound internet access.
  • Checking EIP: Verify if a NAT gateway uses an EIP in the AWS VPC Console under NAT Gateway details.

LINKS

👋 While you are here

Reinvent your career. Join DEV.

It takes one minute and is worth it for your career.

Get started

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay