Introduction
Sometimes your cloud server needs a fixed public IP address that does not change even if you stop or restart it. Elastic IP addresses in AWS solve this by giving you a static IP you can attach to your server anytime.
When you want your server to have a fixed public IP address for users or services to connect to.
When you need to replace a server but keep the same IP address for continuity.
When your server restarts and you want to avoid changing IP addresses.
When you want to quickly remap your public IP to a different server in case of failure.
When you run a web service that requires a consistent IP for firewall rules or DNS.