Tech
Infected

Linux, OpenSource, Programming And Hacks

Dec 24, 2017

How to setup a Static IP (Elastic IP) Address for AWS EC2

Dec 24, 2017
When you create an Amazon AWS EC2 instance, you are given a Public IP which you can use for remote login via SSH or Putty and of course to access on your browser. But the problem is that the Public IP keeps changing each time you restart your instance.

To get a fixed IP, the solution is to use an Elastic IP


Step1: You can find Elastic IPs option under the EC2 Dashboard (left sidebar). click on it.





Step 2: Click on 'Allocate new Address' button, you will get a new allocated IP

Step 3: Now, Click on the 'Actions' button and then click on 'associate Address' option.

you will get an option to select the EC2 instance that you want to get associated with the  newly allocated Elastic IP address.



That's it!

Note: Make sure you don't leave the Elastic IP unused, or you will be charged!



No comments:

Post a Comment