Tag Archives: aws

Amazon AWS Cloud Formation

Amazon has just announced the new feature, where most of services are consolidate and using templates. Cool.

“Dear Amazon Web Services Customer,

We’re excited to introduce AWS CloudFormation, a new service that gives developers and businesses an easy way to create a collection of AWS resources and provision them in an orderly and predictable fashion. Customers can use AWS CloudFormation sample templates or create their own templates to describe the AWS resources, and any associated dependencies or runtime parameters, required to run their application. CloudFormation takes care of provisioning your resources for you. AWS CloudFormation can be accessed via the AWS Management Console, CloudFormation command line tools or APIs. The service is available at no additional charge and customers pay only for the AWS resources required to run the application. To get started using AWS CloudFormation, visit http://aws.amazon.com/cloudformation/.

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