0% found this document useful (0 votes)
33 views12 pages

2016HT13092 - Assignment2 - Amazon EC2 Creation, Logging, and Termination

1) The document outlines the steps to create an Amazon EC2 instance, log into it remotely, and terminate the instance. It describes choosing an AMI, instance type, security groups, and generating SSH keys. 2) After launching the instance, the document shows checking the instance status on the EC2 dashboard and viewing instance details. 3) Logging into the instance remotely using SSH and GIT BASH is demonstrated. Exiting the session and terminating the instance from the EC2 dashboard is also shown.

Uploaded by

kalutheace
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views12 pages

2016HT13092 - Assignment2 - Amazon EC2 Creation, Logging, and Termination

1) The document outlines the steps to create an Amazon EC2 instance, log into it remotely, and terminate the instance. It describes choosing an AMI, instance type, security groups, and generating SSH keys. 2) After launching the instance, the document shows checking the instance status on the EC2 dashboard and viewing instance details. 3) Logging into the instance remotely using SSH and GIT BASH is demonstrated. Exiting the session and terminating the instance from the EC2 dashboard is also shown.

Uploaded by

kalutheace
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Assignment - 2: Amazon Instance Creation and

Login

Assignment 2-Cloud Computing

2016HT13092_Assignment2 - Amazon EC2 creation, logging,


and termination Amazon Instance EC2 Creation and Login
Assignment - 2: Amazon Instance Creation and Login

Contents

1 Introduction ...................................................................................... 3

2 Steps to create an Amazon EC2 instance ...................................... 3


2.1 Logging into the Amazon Dashboard ................................................. 3
2.2 Login into the EC2 dashboard ............................................................ 4
2.3 Choosing the AMI .............................................................................. 4
2.4 Choosing the an instance type ........................................................... 5
2.5 Configuring instance details ............................................................... 5
2.6 Configuring storage for the EC2 instance ........................................... 6
2.7 Configuring security groups ............................................................... 7
2.8 Reviewing and creating an ssh key for remote ssh access ................ 7
2.9 Checking the Launch status ............................................................... 8
2.10 Checking the EC2 dashboard for launched instance. ......................... 9
2.11 Reviewing details of the EC2 instance on dashboard ......................... 9

3 Logging into the Amazon EC2 instance and terminating instance


........................................................................................................ 10
3.1 Remote login into the EC2 instance ................................................. 10
3.2 Exiting the instance .......................................................................... 10
3.3 Terminating the instance .................................................................. 11

4 Conclusion ..................................................................................... 12

Rev PA1 2016HT13092 2 (12)


Assignment - 2: Amazon Instance Creation and Login

1 Introduction
This documents aims to showcase the steps to create an Amazon EC2 instance using the
Amazon AWS. Steps to login to this instance using GIT Bash and terminating the instance
after use will also be shown.

2 Steps to create an Amazon EC2 instance

2.1 Logging into the Amazon Dashboard


Once the user account is created, one can login into the AWS Dashboard to the see the
view shown above. Choose the ‘EC2’ under the “Compute’ section.

Rev PA1 2016HT13092 3 (12)


Assignment - 2: Amazon Instance Creation and Login

2.2 Login into the EC2 dashboard


Once you select EC2, you will see the EC2 dashboard as shown below. One is able to see
all the options related to Amazon EC2 including the resources being used, current running
instances, AMIs, etc. You can also see the Launch instance option. We will use this option
to initiate the process of launching a new instance.

2.3 Choosing the AMI


The first step towards creating an Amazon instance is selection of an appropriate AMI
template. One can choose the AMI that one desires. I have chosen an Ubuntu AMI here.

Rev PA1 2016HT13092 4 (12)


Assignment - 2: Amazon Instance Creation and Login

2.4 Choosing the an instance type


This step requires one to select the instance type that virtual servers required to run
applications. I will choose a free tier t2.micro instance for the purpose of this document.

2.5 Configuring instance details


We will not need to make configuration to choose the properties and behavior of the
instance. We can also choose the number of instance creation and add value added
services on top of the instance. I am choosing the default options here with 1 instance
creation except for the shutdown behavior where I have chosen to terminate the instance on
shutdown.

Rev PA1 2016HT13092 5 (12)


Assignment - 2: Amazon Instance Creation and Login

2.6 Configuring storage for the EC2 instance


One needs configure storage for the EC2 instance depending upon the requirement. I have
chosen the default options here.

Rev PA1 2016HT13092 6 (12)


Assignment - 2: Amazon Instance Creation and Login

2.7 Configuring security groups


Security groups define access rules for external traffic to reach the created instance. There
is a default security group, but I have created mine to allow SSH, HTTP, ICMP-IPV4, and a
custom TCP traffic from port 0. I have only given access from my IP to access this instance.

I have redacted the IP addresses here.

2.8 Reviewing and creating an ssh key for remote ssh access
Once all configuration is done, an ssh key will need to be generated to access the instance
created remotely. This key will be created as a .pem file which should be stored on the local
machine. Please note that I have created a .ssh directory to store the key here.

Once the key is generated, press the ‘Launch Instance’ button to initiate launching the
instance.

Rev PA1 2016HT13092 7 (12)


Assignment - 2: Amazon Instance Creation and Login

2.9 Checking the Launch status


Once all configurations are done and instance is launched, a launch status window is
opened where one can see the initiation details of the created instances.

Rev PA1 2016HT13092 8 (12)


Assignment - 2: Amazon Instance Creation and Login

2.10 Checking the EC2 dashboard for launched instance.


Once the EC2 instance is launched, its status can be checked on the EC2 dashboard. You
can see that 1 new instance has been created with an EBS volume for storage attached and
a new key pair has been allocated.

2.11 Reviewing details of the EC2 instance on dashboard


One can click on the instance to see the details like public and private IP assigned to the
EC2 instance. One can also see the running status and instance status check.

Rev PA1 2016HT13092 9 (12)


Assignment - 2: Amazon Instance Creation and Login

3 Logging into the Amazon EC2 instance and


terminating instance

3.1 Remote login into the EC2 instance


We will be using GIT BASH to login into the EC2 instance. I have input the following
command to login into my Ubuntu instance.

$ ssh –i ’C:\Users\eharkal\.ssh\Harsh_Asn2.pem’ [email protected] (the public IP


assigned to access Amazon EC2.)

You can see the welcome for Ubuntu shown in the command prompt. Also, you can see the
IP assigned and the IP provided by AWS are same.

3.2 Exiting the instance


Exiting the instance is shown below.

Rev PA1 2016HT13092 10 (12)


Assignment - 2: Amazon Instance Creation and Login

3.3 Terminating the instance


Terminating the instance by going to the EC2 dashboard, selecting ‘Actions’->Instance
State -> Terminate

Rev PA1 2016HT13092 11 (12)


Assignment - 2: Amazon Instance Creation and Login

Below warning will pop to warn that any EBS volumes attached will get deleted. Select ‘Yes,
terminate’.

4 Conclusion
We have successfully created, logged-in and terminated an Amazon EC2 instance using
AWS console, EC2 dashboard, and GIT BASH.

Rev PA1 2016HT13092 12 (12)

You might also like