Why not just attach a Public IP to your ELBs and your NAT instances?

Public IP addresses are not persistent – i.e. if you stop/start your instance, the instance will get reassigned a new public IP address. Bummer

Elastic IPs were designed to address this.  They get allocated (initial limit of 5 EIPs per account) to your account.  You can use these throughout your AWS account – and once attached, they are persistent, through instance restarts.

Summary

Use EIPs for your load balancers and NAT instances and anything else that needs an unchanging (and publicly accessible) IP address.

If you need more than 5 EIPs, you can request AWS for a quota increase.

Anuj holds professional certifications in Google Cloud, AWS as well as certifications in Docker and App Performance Tools such as New Relic. He specializes in Cloud Security, Data Encryption and Container Technologies.

Initial Consultation

Anuj Varma – who has written posts on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.