Elastic IP addresses
A public IP is given to an instance when you launch or start it, but an Elastic IP is independent of the instance lifecycle.
You can, at any time, ask for an Elastic IP address. It is given to your account, not a specific instance. One of the great things about an Elastic IP is that you can associate it with an instance that already exists, even if it is already running. And if you stop the instance, it does not become dissociated from the instance. So, you can freely stop and start EC2 instances with Elastic IPs, and they will retain the same public address. By default, you can request up to five Elastic IPs per region. If this isn't enough, you can request more by contacting AWS support. One Elastic IP is free per instance. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access