Tag Archives: ec2

Launching Asia Pacific EC2 Instances using Mr.Awsome

Since the AWS announcment of Asia Pacific Region, I’m testing launching some instances and using Fabric for deployment. I found another tool by Florian Schulze which integrates Fabric in his tool to launch EC2 instance: mr.awsome.

I just added some lines to be able to get to use a different user when executing the Fabric commands, my fork is found here.

My aim here is to be able to launch and test EC2 instances at Asia-Pac region plus experimenting with mr.awsome tool.
Download the latest EC2-API Tools and setup EC2 environment.

$ wget http://ec2-downloads.s3.amazonaws.com/ec2-api-tools.zip
$ unzip ec2-api-tools.zip

On the terminal execute the following. To make it permanent add these lines on the ~/.bashrc

export EC2_HOME=$HOME/<where your ec2-api-tools>
export EC2_PRIVATE_KEY=$HOME/<where your private key is>/pk-XXXXXXXXXXXXXXXXXXXXXXXXXXXX.pem
export EC2_CERT=$HOME/<where your certificate is>/cert-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.pem
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/
export AWS_ACCESS_KEY_ID=<your-accesskey>
export AWS_SECRET_ACCESS_KEY=<your-secretkey>
export PATH=$PATH:$EC2_HOME/bin

Continue reading