Cloud computing you do not generally own the physical infrastructure serving as host to the software platform in question. Instead, they avoid capital expenditure by renting usage from a third-party provider. They consume resources as a service and pay only for resources that they use. Many cloud-computing offerings employ the utility computing model. Sharing “perishable and intangible” computing power among multiple tenants can improve utilization rates, as servers are not unnecessarily left idle it will reduce costs significantly while increasing the speed of application development. A side effect of this approach is that overall computer usage rises dramatically, as customers do not have to engineer for peak load limits. Additionally, “increased high-speed bandwidth” makes it possible to receive the same response times from centralized infrastructure at other sites.
[ad#add-top-in]
Following are some simple Tip and tricks on how to build an application using Amazon Web Services. While purchasing Amazon EC2 you will get auth key and public key to access your EC2 server. You can set this key to your local PC by simple commands bellow.
Down load Tool from http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351&categoryID=88
* Before all you need to download java5+ SDK to install this tool
IN LINUX:
export JAVA_HOME=/usr/ [Path to java binary]
export EC2_HOME=/root/amz [Path to EC2 tool]
Set the environment variables as follow
export PATH=$PATH:$EC2_HOME/bin
export EC2_PRIVATE_KEY=/root/amz/pk-HKZYKTAIG2ECMXYIBH3HXdsd4ZBZQ55CLO.pem
export EC2_PRIVATE_KEY=/root/amz/pk-WAJNB7EJYW4ESF2O74CQsdsddNVU6ZXQ5K.pem
export EC2_CERT=/root/amz/cert-WAJNB7EJYW4ESF2OsdCQSQXNVU6ZXQ5K.pem
IN Windows:
set JAVA_HOME=C:\Sun\SDK\jdk [Path to java.exe]
set EC2_HOME=C:\amz
set PATH=%PATH%;%EC2_HOME%\bin
set EC2_PRIVATE_KEY=/root/amz/pk-HKZYKTAIG2ECMXYIBH3HXdsd4erZQ55CLO.pem
set EC2_PRIVATE_KEY=/root/amz/pk-WAJNB7EJYW4ESF2O74CQserddNVU6ZXQ5K.pem
set EC2_CERT=/root/amz/cert-WAJNB7EJYW4ESdf2OsdCQSQXNVU6ZXQ5K.pem
So you are done now to test the tool run the following command
#>ec2-describe-regions
Output:
REGION us-east-1 us-east-1.ec2.amazonaws.com
REGION eu-west-1 eu-west-1.ec2.amazonaws.com
You can get all commands in /bin folder of EC2 tool you downloaded. Like to start instants stop and restart also search AMI and applications to get password etc.
You can install any of the OS you want Windows or Linux etc and also you can choose verity of OS and pre-installed AMI or even you can create your own AMI using AMI tool provided by EC2. You can create AMI of you local server and also of VMware images etc.
- Wile installing Linux OS it installs OS without any password for root, so u don’t want any password while ssh into it.
- Incas if you need to get the password of the instant you can use the tool you installed to get the password using the command called
PROMPT>ec2-get-password i-2574e22a -k windows-keypair
q96A40B9w
See all command details here...
thanks for this tip…
Wonderful initiative…!
Love to see more…