You are on page 1of 55

AWS Document Guide

Lab6

Configure EBS Volumes, Snapshot and creating AMI

PLEASE READ THE BELOW NOTE BEFORE PRACTICE THIS LAB

Below lab is COST BASED lab, we need to pay some amount to amazon for
resizing the partition and resized portioned snapshot. If you are interested to
do the lab please resize the volume as 1 GB and try this scenario. The below
mentioned scenario is partially success because we have created the windows
image and use the AMI for with an instance. But we are unable to launch the
instance in this case. Sir will teach creating AMI session by using the instance
image in this class later with Auto scaling concept.

Page 1 of 55
AWS Document Guide

Click “EC2”.

Page 2 of 55
AWS Document Guide

Click “Launch Instance”.

Page 3 of 55
AWS Document Guide

Select “Windows Server 2016 Base”.

Page 4 of 55
AWS Document Guide

Select “t2.micro”.

Click “Next”.

Page 5 of 55
AWS Document Guide

Leave default settings and click “Next”.

Page 6 of 55
AWS Document Guide

Leave default settings and click “Next”.

Page 7 of 55
AWS Document Guide

Key as “Name” and Value as “Windows 2016 EBS”.

Click “Next”.

Page 8 of 55
AWS Document Guide

Create a new security called “Mumbai Sec Group”.

Click “Review and Launch”.

Page 9 of 55
AWS Document Guide

Leave default settings and click “Launch”.

Page 10 of 55
AWS Document Guide

If you have existing key choose an existing key pair and select the Key pair. Other wise you need to
create an new key pair. Click “ I acknowledge”.

Click “launch Instance”.

Page 11 of 55
AWS Document Guide

Click the highlighted area to view the instance.

Page 12 of 55
AWS Document Guide

Server is getting ready, wait up to 2/2 status checks.

Page 13 of 55
AWS Document Guide

Click “Actions”

Page 14 of 55
AWS Document Guide

Click “Get Password”.

Page 15 of 55
AWS Document Guide

Click “Choose File”.

Page 16 of 55
AWS Document Guide

Locate the “Eveningaws.pem” file.

Click “Open”.

Page 17 of 55
AWS Document Guide

Click “Decrypt Password”.

Page 18 of 55
AWS Document Guide

You have got the password successfully.

Type mstsc in run box, then type the Ip address of the server.

Page 19 of 55
AWS Document Guide

Type the login credentials provided by awS.

Click “Yes”.

Page 20 of 55
AWS Document Guide

Page 21 of 55
AWS Document Guide

We have connected the server successfully.

Page 22 of 55
AWS Document Guide

Now we need the modify the volume in AWS console.

Click “Volume”.

Page 23 of 55
AWS Document Guide

Click “Modify volume”.

Page 24 of 55
AWS Document Guide

Type the size is 35GiB. (If you want to make it as 31GiB you can do the same).

Click “Modify”.

Page 25 of 55
AWS Document Guide

Click “Yes”.

We have got information that Modify volume request succeded.

Page 26 of 55
AWS Document Guide

Right click start menu to get “Disk management”.

Page 27 of 55
AWS Document Guide

Page 28 of 55
AWS Document Guide

Open the disk management, modified partition will not shown by default. You need to press “F5”. Now
you can able to see “5.0” GB in unallocated partition.

Page 29 of 55
AWS Document Guide

Select the unallocated partition and right click and then click “New Simple Volume”.

Page 30 of 55
AWS Document Guide

Click “Next”.

Page 31 of 55
AWS Document Guide

Click “Next”.

Page 32 of 55
AWS Document Guide

Click “Next”.

Page 33 of 55
AWS Document Guide

Click “Next”.

Page 34 of 55
AWS Document Guide

Click ”Finish”.

Page 35 of 55
AWS Document Guide

Now 5GB partition is ready.

Page 36 of 55
AWS Document Guide

I have stored some data in new volume.

Page 37 of 55
AWS Document Guide

Goto Volume, click “Create Snapshot”.

Page 38 of 55
AWS Document Guide

Type Name as “SansboundAMI” and Description as “Sansbound AMI”.

Snapshot creation has been started.

Page 39 of 55
AWS Document Guide

Click snapshot menu,

Now snapshot is completed.

Page 40 of 55
AWS Document Guide

Now we need to create an image by using the snapshot.

Click “create image”

Page 41 of 55
AWS Document Guide

Type name as SansboundAMI

Description as SansboundAMI

And Select Hardware-assisted virtualization

Then click “Create”.

Page 42 of 55
AWS Document Guide

Page 43 of 55
AWS Document Guide

Goto AMIs,

You can able to see that image is available.

Page 44 of 55
AWS Document Guide

Go to instances, Click “Launch instance”.

Page 45 of 55
AWS Document Guide

Click “My AMIs” then select Sansbound_AMI.

Page 46 of 55
AWS Document Guide

Select “t2.micro”.

Click “Next”.

Page 47 of 55
AWS Document Guide

Leave default settings and click “Next”.

Page 48 of 55
AWS Document Guide

Leave the default settings and click “next”.

Page 49 of 55
AWS Document Guide

Key as Name and Value s “Windows 2016 AMI”.

Page 50 of 55
AWS Document Guide

Select using existing group “Mumbai sec Group”.

In this stage you will get some message that we need to permit port 22 / ssh to access the system.
Please Leave that click “Continue”.

Page 51 of 55
AWS Document Guide

Click ”Launch”.

Page 52 of 55
AWS Document Guide

Select the eveningaws key and click “Launch instances”.

Page 53 of 55
AWS Document Guide

Now the server is ready.

The output was not come in this scenario. Hence, you need to delete/ terminate the instance.

Page 54 of 55
AWS Document Guide

Go to snapshots. Select snapshot and then right click. Delete.

Go to AMIs, Then you need to deregister the AMI image, it will shows some error.

Click “Deregister”.

It will take some time to remove.

Page 55 of 55

You might also like