Blog

Migrating an Expiring Amazon EC2 Free Account to a New Free Account

My site, ericfahsl.com, is hosted on the Amazon Cloud and was free until April 30, 2012.  Specifically, it was hosted using the EC2 Micro Instance free tier.  I first created my account so that I could try to experiment around with having a LAMP server in the cloud and learn a bit more about it.  It then turned into the Sammy Cam, to see what my dog was up to in the corporate apartment.

So my free tier is ending, what do I do?!  Can I migrate my web server to another free account for a year and shut off my server that I now must pay actual money for?  Yes!  Do I need to restart from scratch?  No!  It turns out that's it's pretty easy to create an AMI (Amazon Machine Image, or a snapshot of the current server) and share it with another account.  I'm hoping that no one from Amazon reads (or cares).  Here were my steps:

  1. Log in to Amazon Management Console (let's call this one account A), then go to the EC2 Bucket
  2. Select your web server instance and create an AMI:



  3. It will take some time to create the image, so let's work on setting up our second EC2 free account (let's call this account B)
  4. Log out of AWS or open a new web browser and sign up for another EC2 account
  5. Enter your credit card, confirm your info, and activate your account
  6. Log in to account B, and obtain your account number.  You can find this under Account Activity (which you can get to by clicking your name in the upper-right).
  7. The AMI is probably created by now, go back to account A and check on the status, you should see it under EC2 -> AMIs



  8. Now we need to share this AMI from account A to account B. Select the AMI and choose "Permissions"


     
  9. Enter the account number from account B (you will need to remove the dashes)
  10. Log in to account B and look in the AMIs bucket under the EC2 tab
  11. Now it's time to launch your instance in account B.  Choose your availability zone (I do the default)

    The steps below could be optional, depending on how much pre-work you have done with account B. 

  12. Set up your security groups (I add ports for HTTP, HTTPS, and SSL)


     
  13. I also like to set up an elastic IP.  In the EC2 tab, choose "Elastic IPs" and associate your instance
  14. You should now have an elastic IP address - try confirming this IP takes you to your web server and conduct a quick smoke test to ensure functionality is working as-expected
  15. Now let's set up our DNS.  I'm using Route 53 and GoDaddy for my domain name (probably not the best choice, but it works). Go to the Route 53 tab and sign up
  16. Create a hosted zone with your domain name (ericfahsl.com in my case)
  17. Next create a record set.  I added two additional record sets for ericfahsl.com and www.ericfahsl.com that conduct a simple (A) routing to an IPv4 address and fill in my elastic IP address.


     
  18. Next I go to my godaddy account and update my four nameserver addresses with what was provided to my be Route53
  19. If we're feeling adventurous, let's go back into account A and stop the existing web instance
  20. Now, let's trying going to our original domain name.  If all goes well we will see our original page!  You can also try SSH'ing into your web server

    If you don't see your new web server, make sure your elastic IP is still a valid address.  If that's still working as-expected, it could be the DNS takes some time to update.  If all-else fails, start up your original instance on account A while you continue to troubleshoot.

    Good luck! 

 

Add a comment

Gloomy Sunday Bike Ride

I purchased a new bike a few weeks ago but I hadn't been on it in a little over a week.  The weather was ... OK, about 45 degrees out.  What happened to our 70+ degree weather?!  Anyways, Madison is really a great place to road bike (when there's not snow on the ground) because 

1) There are a lot of bikers around, so drivers are generally tolerable of it
2) There are a number of rural roads not too far away with some nice scenery (and hills!)
3) There is a lot of dairy (it is Wisconsin!) and there are laws that state the rural roads need to be smooth so as to not rattle the milk bottles. 

A couple of photos from the trip:

Untitled
OK, I'll keep it under 40 ;) 

Untitled
View from the cockpit

Untitled
Some nice farmland scenery

IMG_1255
Riding along

Untitled
Onward!

Add a comment

Early Season Dog Parking and Geese Chasing

We've had a bit of a strange Winter, it's been reaaally warm.  We've had 70+ degree temperatures for over a week now, and it's only March 18!  Just two weeks earlier from today we were skijoring on fresh snow and on the frozen lake. Well, we might as well make the most of it!  We took Sammy to Warner Park, one of his favorite dog parks (all dog parks are his favorite), where there is a bay that dogs can swim at.  

IMG_0359
Running around at Warner Park Dog Park

So after a little bit of running around, we wonder, is the water too cold for him to want to go swimming?

IMG_0358 
Nope, water is just fine

IMG_0375
Muddy dog! You're going back in to rinse off! 

So we send him back in to rinse off, but lo and behold there are some geese nearby. Another one of his favorite activities is to chase geese, well... he certainly got his chance!

Part 1:

 

Part 2:

 

Add a comment

Hokkaido Skiing

For a number of years I've dreamed of skiing in Japan. I've heard great stories about the powder, the lack of crowds, and the culture. I still have a lot of frequent flyer miles (see the EXP/FlightMemory article) so we finally booked our trip to Hokkaido, the North Island of Japan.  We were there a total of five nights and it was an amazing trip.  Let's go over my checklist of what I've heard and see if we experienced it:

  1. Powder: we skied four days, and three of them were full-on powder days.  The snow quality was great, super light and fluffy. Check
  2. Lack of crowds: For skiing three days in resorts (one of the days was a backcountry day with no ski lifts), we had to wait behind people maybe half a dozen times ... total.  There were times when we had to wait for the tram, but we never missed a tram because of people in front of us.  Check
  3. Culture: The Japanese are a very formal people. Lots of bowing, lots of respect shared. It was a very interesting experience, especially since so many people don't speak any English! We had lots of interesting encounters traveling around the island with our ski bags and practically zero fluency in Japanese.  Check
A great trip, I can't wait for the next ski adventure!
 
IMG_0130
Furano cultural event 
IMG_0134
Our resort for two of the four days of skiing 
IMG_0140
Lots of snow! 
IMG_0158
It was their 50th anniversary 
IMG_0156
Snow sculptures 
IMG_0154
Best ramen we've ever had 
IMG_0181
Backcountry skiing 
IMG_0189
Lunchtime in the backcountry
IMG_0197
Backcountry skiing 
IMG_0203
Another powder day! 
IMG_0238
Powder! 
IMG_0233
One of our best days of skiing ever
IMG_0271
In downtown Sapporo 
IMG_0273
8am: "Commuting" to the ski hill outside Sapporo  
IMG_0276
Sapporo Teine, with the city in the background 
IMG_0284
Sapporo Teine 
IMG_0294
Sapporo and the Ocean in the background 
Add a comment