2012/10/01

Amazon EC2: Getting started (Part 1/2)

EC2 = Amazon Elastic Compute Cloud

In this post we will create EC2 Micro instance.

For now Amazon EC2 has been my weapon of choice for testing out stuff. Instances are easy to launch and if you run it for couple of hours its basically free.

This is very simple guide that runs trough the process of creating a virtual machine in Amazon infrastructure.

I'm not going to cover signing up part, but its easy to do just follow the instructions. You need a valid credit card in order to register.

If you are registering first time to AWS, you will be eligible for Amazon's free tier!

Yes! Free micro instance for 12-months, the performance is not going to rock your world buts its alright to run small website on it. More information about free-tier here

http://aws.amazon.com/ec2/

Once you get your account done you can log into your AWS Console. As you can see EC2 is only one part Amazon Web Services, we are not covering any other services than EC2 now.


















Click EC2 to proceed.

Next up its importat to choose correct region in upper left navigation bar. If you are setting up your instance for your personal testing use, its good to choose region nearest to you.

















Once the region is selected hit "Launch Instance" button in the middle of the screen.





You can either use classical wizard or quick launch, both do the same but in our case Quick launch is quicker (duh) and correct image seem to be at the first page (Ubuntu Server 12.04.1 LTS)

Next set the name for your instance and set the name for your Key Pair. You must also download your key from the Download button next to Name field.

Key Pair? Yes, Amazon provides public/private key pairs, public key goes into your virtual machine and you will be using private key. These keys must match in order to establish a connection to your server.

You can only download this file once while creating the key pair so don't loose it! So I'm going to choose 64-bit Ubuntu server, you can use whatever you want.


Then we review our instance, we have Type t1.micro it is a Micro instance, it has 613 MB of memory poor I/O performance. But for testing purposes it will do fine. Personally at this point i would rename security group since it cannot be renamed afterwards.


You can create your custom security group if you click "Edit details". Check " Create new Security Group", name it and set some kind of description for it. From the "Create a new rule" Dropdown you select predefined groups, choose what you need and click "Add Rule". Here you could restrict from what source IP addresses can access your service, default 0.0.0.0/0 means everyone. 

After you are finished, click Create



Click Save details, then you will return to review windows and click Launch.

Continue to part 2











No comments:

Post a Comment