Getting started with Amazon EC2

From Foochal

Jump to: navigation, search

Contents

Sign up for Amazon EC2

  • Goto http://www.amazon.com/
  • Click on EC2
  • Create an Account. You can use an existing Amazon account and an existing credit card information.
  • Finally, you will get a confirmation email from Amazon letting you know that you have successfully created an account.

Getting your Credentials

Access id/secret key

  • Goto your access key page
  • Your access key id and secret key (equiv to login/pass) is automatically generated for you. Make a note of it. You will need this when making any calls to your service.

Certificate

Generate a new certificate and download public/private key in your ~/.ec2 directory.

Start building your first application!

http://docs.amazonwebservices.com/AWSEC2/2008-02-01/GettingStartedGuide/?ref=get-started

Download EC2 Tools

mkdir ~/software/ec2

Add the following lines to your .bash_profile.

export EC2_HOME=$HOME/software/ec2
export PATH=$PATH:$EC2_HOME/bin

Create an image, boot it up, ssh to the instance, access it over the web

  • Create an image using a default public image
  • Generate a public/private key to the image
  • Start it up using the amazon tools
  • ssh to the image
  • Point your web browser to it

Personal tools