Wednesday 23 September 2020

Assigning fixed elastic(public) IP to EC2 instance.

 Usually when you stop and then start an EC2 instance, it can changes its public IP.

if you need to have a fixed public IP for your instance, you need an Elastic IP. An Elastic IP is a public IPv4 IP you own as long as you don't delete it.


Practical steps:


From the EC2 instance launch page, Navigate to Network & Security --> Elastic ips.



Click on Allocate new address now.                                                                                                                          



Click on Allocate.

Then the below pop up screen comes up with public IP. Click on Close.                                                                                          

Then from the Elastic IP page, Select the IP address with check box(1 as highlighted below) --> Actions drop down --> Associate Address.




Provide details:                                                                       
Resource type: instance
Instance : Instance ID
Enter private IP details




Enable the Reassociation check box and Click on Associate button.



Then the below conformation screen appear, Saying Associate address request assigned to EC2 instance successfully.




No comments:

Post a Comment