AWS Cloud Architecture•Part 2: Networking, VPC & Traffic Routing (6 - 20)
Elastic IP (EIP) vs Standard Public IP.
In Simple Words:
- Standard Public IP: Assigned automatically by AWS from its pool; released and changed whenever the instance is stopped and started.
- Elastic IP (EIP): Static IPv4 address permanently allocated to your account that stays the same across reboots and can be remapped to another instance instantly on failure.
bash
# Associate Elastic IP with a standby EC2 instance during failover:
aws ec2 associate-address --instance-id i-0123456789abcdef0 --allocation-id eipalloc-08923472938472938