Friday, August 15, 2008

How to install EC2 API tools

In my previous post I had mentioned that I will show you how to install EC2 API command line tools. This post will guide you to install EC2 tools. This is quite an easy task. Let me show you the steps

1. First you have to download the EC2 API command line tools from Amazon
2. unzip the EC2 API tools
unzip EC2-api-tools.zip

3. Now you have to set up some environment variable

export EC2_HOME=/home/lib/ec2-api-tools
(here I have unzip the EC2-api-tools to home/lib/ec2-api-tools)

export EC2_PRIVATE_KEY=/home/.ec2/pk-XXXXXXXXXXXXXXXXXXXX.pem
(this will be the path to your private key file)

export EC2_CERT=/HOME/.ec2/cert-XXXXXXXXXXXXXXXXXXXX.pem

(this will be the path to your cert file)

Note: you can directly put these lines to you ~/.bashrc file. Another thing you have to remember that EC2-command-line tools use JAVA so you have to install JAVA on the machine and have to set the JAVA_HOME path as well

No comments: