Tuesday, 22 November 2016

CREATING AND MANAGING AMAZON EC2 INSTANCE ON AMAZON AWS

GUIDE FOR CREATING AND MANAGING AMAZON EC2 INSTANCE

Introduction: - This document provide a detailed documents for creating, launching and managing EC2 instance in Amazon AWS

What are Amazon AWS Services and EC2 Instances?

Amazon Web Services, a subsidiary of Amazon.com, offers a suite of cloud-computing services that make up an on-demand computing platform. These services operate from 13 geographical regions across the world.

Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers. Amazon EC2's simple web service interface allows you to obtain and configure capacity with minimal friction.

Entire Document is divided into Following Sections.

1. How to start with Amazon EC2.
2. How to select an EC2 instance that suits your requirements.
3. Creating EC2 instance and launching it.
4. Connecting to EC2 instance.
5. Modifying the security settings of EC2 Instance.

1. How to start with Amazon EC2 :-

Getting started with Amazon EC2 is very simple. Go to https://aws.amazon.com and sign up for the Amazon AWSaccount .Login to Amazon AWS with your account credentials and open AWS Management console.

Here you will find all the services your account has registered for.

Click on EC2 and you will be redirected to the Amazon EC2 dashboard that will look like below



2. How to select an EC2 instance that suits your requirements:-

On EC2 dashboard you will see a Launch Instance button that will let you create your own EC2 instance in the Amazon cloud.

Amazon basically provides four types of instances according to their size and computing capacity:-
1. Small
2. Medium
3. Large
4. Extra large.
If you are going to build a development environment on the EC2 server then a small EC2 instance will be good enough for your computing requirements.

3. Creating EC2 instance and launching it :-

To configure an EC2 instance go to EC2 dashboard and click on launch instance button and Now you will see “Create a New Instance” window similar to

Here you will see two radio buttons named classic wizard (selected default) and Quick launch wizard.
We need to create a customized instance as per our need so we will use classic wizard.

Next you need to click on continue button which opens up “Request Instance Wizard” window as follow:-

Select the appropriate combination of OS/Applications and click select , you will get an option to chose the instance type(small/medium etc) and geographical region(USA//Europe) where you would like your instance to run.

Here you will see two radio buttons named classic wizard (selected default) and Quick launch wizard.
We need to create a customized instance as per our need so we will use classic wizard.

Next you need to click on continue button which opens up “Request Instance Wizard” window as follow:-
You can leave it as it is and click on continue button this will ask you to provide a tag as a combination of Key/value pair that will help you manage your EC2 instances like search , organize etc.

Provide a key and value as you wish and click continue button.

Click continue button that will opens up public/private key pair generation window:-

It will ask you to enter name of your key pair file and click on click on “Create and download key pair” button.

Allow download and save of this key pair file, this is very important file that let you securely connect to your EC2
instance once your launch is completed.
After you have done downloading and saving the file, click to continue button that will ask you to chose the Security group under which you would like to run your instance.

This is final step here you can review the settings and other things with which your instance is going to be launched , to modify any settings you can click on back link at bottom left side and go back to previous steps .

Finally click the launch button and you are done with your EC2 instance! Congratulations!
This is final step here you can review the settings and other things with which your instance is going to be launched , to modify any settings you can click on back link at bottom left side and go back to previous steps .
Finally click the launch button and you are done with your EC2 instance ! Congratulations !

4. Connecting to EC2 instance :

Now you are ready to connect to your EC2 instance and manage it.
Go to Amazon EC2 dashboard and click in Instances in left menu you will see your newly created instance listed in
the grid.
Check the check box shown in instance row and from above instance action menu select the connect option …
This will open up a Remote desktop connection window that will have the public DNS, Username and a link named

Retrieve password as below :-
Click on retrieve password link and it will ask you to locate the private file that you have downloaded in above EC2 instance creation process. Browse and locate that file you saved earlier and click on decrypt button.

Now you will get the remote desktop window that will have Public DNS, Username as well as password required to
connect to your EC2 instance.

Save these credentials and click to “download shortcut file link” on remote desktop window that will open up
an open/save window, simply click ok button.
This will open up the windows remote desktop connection window, provide your user name and password as
noted earlier and click ok.
Congratulation! You are now connected to your new EC2 instance.
5. Modifying the security settings of EC2 :-
EC2 instance by default applies lot of restrictions on various works, we can modify the security settings of EC2
instance to enable features such as RDP access, Remote access to sql server, http/https requests to EC2 and so on.
Doing so is very simple.
You need to go to Amazon EC2 dashboard click security group under Network and Security section in left menu.
You will see a list of security groups appear in grid , select the security group under which your EC2 instance is
running , click the inbound tab in the bottom as follow :-

No comments:

Post a Comment