What Everybody Ought to Know About How to Clone a Windows 2008 Datacenter edition EBS backed AWS AMI?

Hint: It is NOT to use ec2-create-image command from command line.

Most of my previous posts on AWS have focused on Linux AMI’s specifically (Ubuntu) on EC2. This time I have decided to focus to default Windows AMIs from Amazon which are EBS backed (t1.micro, et al) and how to clone them to enable instant starts from previously known state or elastic load balancing for auto scaling. Continue reading

Here is the biggest mistake you will make on Amazon EC2…

So do you remember my flagship Amazon Web Services EC2 post “How to start an AWS EC2 Ubuntu Server for your developer in 6 minutes?
I showed you step by step how to start yourself on AWS and then how to create keypairs and logon to your instance on the command prompt, add new user, give the new user sudo access and finally configure ssh access without keypair and opening up ssh access for any machine using a user id and password. Continue reading

How to be up on Drupal 7 on Amazon EC2 Ubuntu 9.10 and Apache, PHP and Postgres 8.4 in 2 mins?

Originally Posted: 29 Jul 2010 10:38 AM PDT

Once you are up with your Amazon EC2 instance of Ubuntu 9.10 (Karmic Koala) using Alestic’s ami-bb709dd2, I will show you how to install Drupal 7 with Postgres 8.4 instead of Mysql database.

Here are the steps you take: Continue reading

Amazon AWS EC2 Spot Instance takes forever to spawn?

Originally Posted: 18 Jul 2010 12:18 PM PDT

As noted before, I started a reserved instance for hosting an online game project. I also need a processing machine every other day to run 3 processes: my game import, upload game swf and image to S3 and translator for the game meta. I use Amazon’s spot instances to accomplish this. A spot instance is a cheaper instance than an on-demand instance and its pricing is based on availability of excess capacity that Amazon has at any given point in time.
Continue reading

How to Backup and Launch your custom EC2 Ubuntu machine from S3?

First of all why would you want to do that? For many many reasons. One of the reasons I have was to bring up a machine every night which had all the code that I need to import and translate games. And I needed a dedicated machine with the base EC2 instance m1.small horsepower. I know of people who bring up 20-50 instances every night to do some heavy weight data processing before shutting down and killing those instances.

Here is what I would do:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo vi /etc/apt/sources.list

Here is the file content of sources.list:

deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ karmic main universe
deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ karmic main universe
deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ karmic-updates main universe
deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ karmic-updates main universe
deb http://security.ubuntu.com/ubuntu karmic-security main universe
deb-src http://security.ubuntu.com/ubuntu karmic-security main universe

Continue reading