A Blog about technology, linux, peer2peer, cool new downloads and software development.

Sunday, December 20, 2009

how to configure ubuntu linux to manage amazon ec2 machine


start an instance @
https://console.aws.amazon.com/ec2/home

download : ec2-api-tools @
http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351
unzip to $HOME/bin/ec2-api-tools-1.3-46266

add to .bashrc :
# EC2 - begin
export EC2_PRIVATE_KEY=$HOME/keys/pk-KWJIYEWJXT7MOMSS2OHMIS7IYLHAGTN7.pem
export EC2_CERT=$HOME/keys/cert-KWJIYEWJXT7MOMSS2OHMIS7IYLHAGTN7.pem
export EC2_HOME=$HOME/bin/ec2-api-tools-1.3-46266
export JAVA_HOME=/usr/lib/jvm/java-6-sun/jre/
# EC2 - end

run :
. .bashrc

test :
./bin/ec2-api-tools-1.3-46266/bin/ec2-describe-instances

docs :
http://docs
.amazonwebservices.com/AWSEC2/latest/CommandLineReference/

https://help.ubuntu.com/community/EC2StartersGuide

No comments: