While learning basic terminology of AWS I've been came across with Elastic IP. However, I don't entirely understand the definition of Elastic IP from the official docs.
So, I'm actually looking for a simple explanation of Elastic IP and its usefulnesses over the pubic IP of an instance.
An Elastic IP address is a reserved public IP address that you can assign to any EC2 instance in a particular region, until you choose to release it. To allocate an Elastic IP address to your account in a particular Region, see Allocate an Elastic IP address.
An Elastic IP address is a static public IPv4 address associated with your AWS account in a specific Region. Unlike an auto-assigned public IP address, an Elastic IP address is preserved after you stop and start your instance in a virtual private cloud (VPC).
The advantage of associating the Elastic IP address with the network interface instead of directly with the instance is that you can move all the attributes of the network interface from one instance to another in a single step.
All AWS accounts are limited to five Elastic IP addresses per Region.
Elastic IP address is a public static IPv4 address which is reachable from the Internet. Basically Elastic IP addresses are used by AWS to manage its dynamic cloud computing services. Within the AWS infrastructure, customers have virtual private clouds (VPC), within the VPCs, users have instances. So when you launch an EC2 instance, you receive a Public IP address by which that instance is reachable from internet. Once you stop that instance and restart the instance you get a new Public IP for the same instance. So it's basically a problem to connect your instance from internet for not having a static IP. To overcome this problem, we attach an Elastic IP to an Instance which doesn't change after you stop / start the instance.
In short Elastic IP is a permanent IP for your instance.
Hope it help you to understand the basics of Elastic IP. For more please look at Elastic IP, Static IP, Public IP. What’s the Difference?.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With