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:
- Sign up for AWS account.
- Launch a “t1.micro instance”
- Beware of the 750 hours free-use limit.
Simple, right? Here are more detailed steps:
- Go to aws.amazon.com and click on “Sign up”.
- Next enter your email address and select “I am a new user.”
- Enter Login credentials
- Enter your contact information
- Enter your payment information
- 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.
- After that, it may take while until your account is actually activated.
- 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:
- Click on “EC2 Virtual Servers in the Cloud”.
- You will land on the EC2 Dashboard. Right in the middle click on “Launch Instance”.
- On the “Create a New Instance” menu select “Quick Launch Wizard”
- 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”.
- 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.
- 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.
- 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”.
- 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“.
- 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 firstname.lastname@example.org”
- On windows: follow this tutorial to connect with Putty.
- 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?