Elastic IP addresses for Amazon
Amazon launched elastic IP addresses today for EC2. Elastic IP addresses allow you to assign a static ip address to your Amazon instance which makes it far more suitable for hosting your own sites now.
Prior to the launch of elastic IP addresses, your EC2 instances would be assigned an IP address from the pool that was not guaranteed to remain under your power. So if your instance crashed and you had to bring up a new instance, you get a new IP address and, if you were hosting a site on the old IP would now have to login to your domain name provider and update the A NAME record to the new address. PITA.
I just cut WalkJogRun over to an elastic IP address and it was far less painful than I imagined. The process for using elastic IP addresses is as follows:
- Start an Amazon EC2 instance if you don't already have one
- Request an IP address using the latest version of the EC2 tools and the ec2-allocate-address command
- Assign that IP address to an instance id (i-something) ec2-associate-address -i i-b3e019da 75.101.157.145
- Rush over to GoDaddy or wherever your DNS is recorded and change the A NAME to point at this new address.
Read the feature announcement here