Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Elastic IP in AWS and why it is useful?

Tags:

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.

like image 540
Mr. Noone Avatar asked May 12 '18 12:05

Mr. Noone


People also ask

What is elastic IP and why it is used?

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.

What is elastic IP in AWS?

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).

What is the advantage of using elastic IP address?

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.

How many elastic IPS can I have in AWS?

All AWS accounts are limited to five Elastic IP addresses per Region.


1 Answers

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?.

like image 123
Shubho Shaha Avatar answered Oct 16 '22 15:10

Shubho Shaha