Assign a Fixed IP to an AWS EC2 Instance
The Cloud Zone is brought to you in partnership with Mendix. Better understand the aPaaS landscape and how the right platform can accelerate your software delivery cadence and capacity with the Gartner 2015 Magic Quadrant for Enterprise Application Platform as a Service.
As described in my previous
post the IP (and DNS) of your running EC2 AMI will change after a
reboot of that instance. Of course this makes it very hard to make your
applications on that machine available for the outside world, like in
this case our WordPress blog. That is where Elastic IP comes to the rescue. With this feature you can assign a static IP to your instance.
Assign one to your application as follows:
- Click on the Elastic IPs link in the AWS Console
- Allocate a new address
- Associate the address with a running instance
- Note the IP being assigned to your instance
One Important Note: As long as an Elastic IP address is associated with a running instance, there is no charge for it. However an address that is not associated with a running instance costs $0.01/hour. This prevents users from ‘reserving’ addresses while they are not being used.