Configuring EC2 Amazon by linux machine
1) Locate the java file and set the path
$ export JAVA_HOME=/etc/alternatives/jre_1.7.0
2) $ mkdir EC2Config
3) $ mkdir .ec2
4) Download ec2-api-tools.zip, X.509 Certificate (pk and cert files)
5) Copy and extract ec2-api-tools.zip
$ unzip ec2-api-tools.zip
6) Set path as
$ export EC2_HOME=~tiru/ec2-api-tools-1.3-36506/
$ export PATH=$PATH:$EC2_HOME/bin
$ export EC2_PRIVATE_KEY=~tiru/.ec2/pk-OE3OLHWAR73ZY3LBSHW43SIZLKAZJ7WS.pem
$ export EC2_CERT=~tiru/.ec2/cert-OE3OLHWAR73ZY3LBSHW43SIZLKAZJ7WS.pem
7) Search for ec2-public-images/getting-started.manifest.xml and get the ami-2bb65342
$ ec2-describe-images -o self -o amazon | grep machine
8) Get the keys
$ ec2-add-keypair gsg-keypair
9) save it into the file `ec2-add-keypair gsg-keypair`
10) $ chmod 600 id_rsa-gsg-keypair ; ls -l id_rsa-gsg-keypair
11) $ ec2-run-instances ami-3c47a355 -k gsg-keypair
12) copy the instance id like i-87fa80ee
13) $ ec2-describe-instances i-87fa80ee
14) copy the weburl ec2-72-44-55-146.compute-1.amazonaws.com to your favourite web browser
15) Thats it.