Elastic IPs with Amazon Elastic Compute Cloud (EC2)
Once 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.
- Log on to AWS and adopt an admin role.
- Go to Services > EC2, and select Elastic IPs from the left pane.
- Click Allocate Elastic IP Address.
- Click Allocate to use the default Amazon's pool of IPv4 addresses.
- Select you new Elastic IP address and click Actions > Associate Elastic IP address.
- 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!
- Go to https://console.aws.amazon.com/ec2/home
- Go to the EC2 tab, and select Elastic IPs from the Navigation pane.
- With the correct Elastic IP selected, choose Disassociate Address, and confirm in the dialog box.
- With the correct Elastic IP selected, choose Release Address, and confirm.
Thanks for visiting.