Pre-requisites:
- Java 5 or above. Either JRE or JDK is acceptable.
- Depends on environment variable JAVA_HOME to locate Java runtime.
sgoswami@ubuntu:/$ export JAVA_HOME=
<PATH>
<path> : Java Directory which contains subdirectory bin.Setup Instructions:
- Create a Directory "ec2-api-tools".
- Download (from http://www.amazon.com/gp/redirect.html/ref=aws_rc_ec2tools?location=http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip&token=A80325AA4DAB186C80828ED5138633E3F49160D9) and extract the tool archieve into this directory.
- Create environment variable EC2_HOME and point it to the ec2-api-tools directory. Use command as below
- Export environment variables EC2_CERT and EC2_PRIVATE_KEY. As the name suggests they point to the files contain your Amazon account's Private Key and Certificate file.
sgoswami@ubuntu:~$ export EC2_CERT="/usr/local/ec2/cert-saasbeta.pem"
sgoswami@ubuntu:~$ export EC2_PRIVATE_KEY="/usr/local/ec2/pk-saasbeta.pem"
If you have followed the instructions correctly you should be able to run the ec2 commands successfully now.
To test it try below:
- Navigate to bin folder of ec2. In my case it is: /home/sgoswami/ec2-api-tools/bin
- Try the command:
It should list you all the isntances that are running in your Amazon AWS account.
Congratulations you have setup this tool successfully. You can try other commands of this tool. Good Luck.
No comments:
Post a Comment