Elastic IPs with Amazon Elastic Compute Cloud (EC2)

awsOnce you've started an EC2 instance, one of the first tasks that you'll want to undertake is to allocate an Elastic IP address.  Please note that the cost (at the time of writing this article) is free, however the cost of keeping an unassociated Elastic IP address is 1p per hour.  So the moral of the story is if you are going to use an Elastic IP address, make sure you associate it with an EC2 instance!  This article shows you how...


Allocate an Elastic IP Address

Be warned that once you start a server up, you will start to be charged in accordance with Amazon's pricing structure.  Once you've finished with an Elastic IP address make sure you disassociate and release the address, to stop being charged.

  1. Log on to AWS and adopt an admin role.
  2. Go to Services > EC2, and select Elastic IPs from the left pane.
  3. Click Allocate Elastic IP Address.
  4. Click Allocate to use the default Amazon's pool of IPv4 addresses.
  5. Select you new Elastic IP address and click Actions > Associate Elastic IP address.
  6. Choose your EC2 Instance to associate with the Elastic IP address, and click the Associate button.

 

Remove an Elastic IP allocation

To remove an Elastic IP allocation (and stop being charged) follow this procedure.  Be warned that once you've removed an Elastic IP allocation, you won't be able to get that same IP address again!

  1. Go to https://console.aws.amazon.com/ec2/home
  2. Go to the EC2 tab, and select Elastic IPs from the Navigation pane.
  3. With the correct Elastic IP selected, choose Disassociate Address, and confirm in the dialog box.
  4. With the correct Elastic IP selected, choose Release Address, and confirm.

 

Thanks for visiting.