top of page
Writer's pictureParag

AWS EC2 Elastic IP Address

Updated: Jul 29, 2021

Objectives:

1. Learn to allocate EIP to your account for dynamic cloud computing

2. Learn to associate EIP address to Amazon EC2 instance running web server


Provision a EC2 Linux Webserver & associate an elastic IP address

Step 1: Login to AWS management console & provision a Linux Web Server Instance. You may refer to the steps in the EC2 Linux Webserver document.

We observe here that a temporary Public IP address is allocated to this instance.

Check that the web server is working by running the IPv4 or DNS Name in different tab of Brower.


Step 2: Stop the instance from Actions -> Instance State and start the Instance again.

We observe that the IP address has been changed.

To avoid this issue, AWS provides the Elastic IP service.

Step 3: While the Linux instance is running, navigate to Elastic IPs from left navigation pane under Network & Security. Allocate an Elastic IP address by clicking Allocate Elastic IP address button.

In the next step, click on Allocate.

Check that the Elastic IP is created.

Step 4: Go to Actions -> Associate Elastic IP address

Select the Instance and Private IP address created above from drop down. Click on Associate in the bottom right corner.

Observe that an associated Instance ID is generated.


Step 5: Go to EC2 instances and check that the IP is associated with the instance.

Stop the Linux instance & start the Linux instance again to ensure that the public IP doesn’t change. This is because the EIP is a static public IP address designed for dynamic cloud computing. The field indicated shows the elastic IP address associated to the instance which remains constant even after the instance is stopped and started again.

Step 6: Terminate the Linux instance & release the EIP associated if you no longer need it.



Was this document helpful? How can we make this document better. Please provide your insights. You can download PDF version for reference.




548 views47 comments

Recent Posts

See All

47 Comments


very helpful tutorial

Like

very useful.

Like

Useful

Like

Nice blog

Like

Very useful sir

Like
bottom of page