Wednesday, January 18, 2012

Getting Started With Amazon EC2

I just created my first Amazon EC2 instance. And I must say, the initial steps are a bit overwhelming. To help with that.

I am adding my notes/links/videos that I have collected today. I'll be updating this as I understand more about it. Hope it helps. Cheers.

Link To start with



Make sure your .ec2 folder is chmod 700
and all the files in it are chmod 600 else you’ll get issues

Once you are able to ssh
use this command to create your new user

$useradd -s /bin/bash -m -d /home/USER USER
$passwd USER
<give your user passwd>

now to give privilage rights for you to access via your own user check this link
http://blog.sofasurfer.org/2011/07/16/ubuntu-ec2-add-new-admin-user/

this to create key paris etc
https://aws-portal.amazon.com/gp/aws/developer/account?ie=UTF8&action=access-key

for firefox console extension use this
http://aws.amazon.com/developertools/609?_encoding=UTF8&jiveRedirect=1

amazon official help for this
http://docs.amazonwebservices.com/AmazonEC2/gsg/2006-06-26/running-an-instance.html

if you face probs
http://serverfault.com/questions/227804/why-cant-i-ssh-into-my-new-ec2-instance

http://stackoverflow.com/questions/8193768/trying-to-ssh-into-an-amazon-ec2-instance-permission-error

instance families types
http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/instance-types.html?r=307


list of amis
http://cloud.ubuntu.com/ami/

amazon web console
https://console.aws.amazon.com

Understanding Web Console video
http://www.youtube.com/watch?v=rYJLIfVuSMY&lr=1

If you got any Questions, Post them on your comments :)

Enjoy!!


PS - Thanks to Siddharth Sarda for helping me out :)
PS2 - You need credit card details to get a free instance for yourself. You wont be charged for the free instance(below a threshold), but to get credentials you still need credit card. Check this for more details.