AWS: Steps to get a free VM up & running

This post is intended to be a very simplistic post on how to get you started with Amazon Cloud (AWS) with a VM. It will allow you to start experimenting AWS, without any costs (if you take the right steps). Naturally Amazon itself provides more detailed steps here.

What you will need:

  • email account
  • cellphone – for security reasons, to make sure you’re not hosting CPU power for any DDoS and other type of stuff
  • credit card – though you actually need to input credit card details, you can indeed run a free VM in a limit amount of time. Amazon will simply not charge you anything for it, as long as you stick to the greenzone.

Overview of the process:

  1. Sign up for AWS account.
  2. Launch a “t1.micro instance”
  3. Beware of the 750 hours free-use limit.

Simple, right? Here are more detailed steps:

  1. Go to aws.amazon.com and click on “Sign up”.
  2. Next enter your email address and select “I am a new user.”
  3. Enter Login credentials
  4. Enter your contact information
  5. Enter your payment information
  6. Next you will have an Identity verification through cellphone, which consists of being contacted by an automated system that prompts you to enter the PIN number they provided you.
  7. After that, it may take while until your account is actually activated.
  8. Next go to aws.amazon.com/products and click on the “My account Console”, and “AWS Management Console”. After you successfully login, you’ll land at this page:AWS portfolio_II
  9. Click on “EC2  Virtual Servers in the Cloud”.
  10. You will land on the EC2 Dashboard. Right in the middle click on “Launch Instance”.
  11. On the “Create a New Instance” menu select “Quick Launch Wizard”
  12. Then Select “Create new”, enter the name of your new Instance (i.e. VM) and select for instance an Ubuntu, to make sure you stay on the free-way. Nowadays you have two versions of Ubuntu Server available: 12.04.2 LTS and 13.04. If you are following specific tutorials with the previous version of ubuntu, then you might prefer to choose that one. Before hitting continue, make sure you click on the “Download” button. You will download a “pem” file (Privacy Enhance Mail), which is the certificate you will need to sucessfully establish a console session to that VM you’re about to launch. After downloading that file, hit “Continue”.
  13. On the next screen you will be able to confirm that the type of instance you are launching is a “t1.micro”. It is very important you do not change this, if you want to stick with the free experimenting. Hit launch.
  14. Your VM might take a few minutes until the orchestration on Amazon backend is completed. When the initialization is completed, right-click on your instance and select connect.
  15. Select “Connect with a standalone SSH Client”. You will have instructions provided by Amazon there. Make sure you copy the command line provided by Amazon, and launch a terminal session. In Windows I suggest you use Putty. If you’re using a Mac, just go to “Applications > Utilities > Terminal”.
  16. On Mac: Now this part might be a little more tricky if you’re not used to CLI. You need to change the permissions of that “pem” file you downloaded, so change to the directory where you stored the pem file (Usually “Downloads” directory), and change permissions. Enter the following lines, where the text contained in each quotes is a different line: “cd ~/Downloads” , “chmod 400 name-of-the-pem-file-you-downloaded.pem“.
  17. Still on Mac: Now is the time to paste the line you copied from Amazon. Something like “ssh -i name-of-the-pem-file-you-downloaded.pem ubuntu@name-of-your-instance.compute-1.amazonaws.com”
  18. On windows: follow this tutorial to connect with Putty.
  19. There! You should have a Welcome page in your terminal console from Ubuntu.

Up and running. It is very important for you to note that you keep your total usage of t1.micro instances under 750 hours per month to avoid charges from Amazon. In order to do that, you have to terminate (yes delete everything!) your instance. You might not be using CPU power, but you will still be using Storage, which is also included in Amazon’s business…

Now its time for experimenting things. Why not start with a LAMP?

Advertisements

One thought on “AWS: Steps to get a free VM up & running

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s