2.1 01-060-020-Lab-Notes-V1-03

Download as pdf or txt
Download as pdf or txt
You are on page 1of 17

lab

lab title

Connecting to EC2
V1.03

Course title
BackSpace Academy
AWS Certified Associate
BackSpace Academy AWS Certified Associate

Table of Contents

Contents

Table of Contents ........................................................................................................................................................1


About the Lab ..............................................................................................................................................................2
Connecting to EC2 Linux .............................................................................................................................................3
Launch an EC2 Instance ........................................................................................................................................3
Connect to Instance ..............................................................................................................................................5
Clean Up................................................................................................................................................................6
Connecting to EC2 Windows ......................................................................................................................................8
Launch an EC2 Instance ........................................................................................................................................8
Connect to Instance ............................................................................................................................................11
Clean Up..............................................................................................................................................................16

1 Copyright all rights reserved - BackSpace.Academy


BackSpace Academy AWS Certified Associate

About the Lab

Please note that not all AWS services are supported in all regions. Please use
the US-East-1 (North Virginia) region for this lab.
These lab notes are to support the hands on instructional videos of the Identity and Access Management (IAM)
section of the AWS Certified Associate Course.

Please note that AWS services change on a weekly basis and it is extremely important
you check the version number on this document to ensure you have the lastest version
with any updates or corrections.

2 Copyright all rights reserved - BackSpace.Academy


BackSpace Academy AWS Certified Associate

Connecting to EC2 Linux

In this section, we will use the EC2 Instance Connect service to connect to the Linux operating
system of an EC2 instance.

Launch an EC2 Instance

From the AWS console search EC2

Click EC2

Select Instances -> Launch Instances

Select Amazon Linux 2 AMI

Please note not all AMI are set up for EC2 Instance Connect

3 Copyright all rights reserved - BackSpace.Academy


BackSpace Academy AWS Certified Associate

Select t2.micro

Click Review and Launch

Click Launch

4 Copyright all rights reserved - BackSpace.Academy


BackSpace Academy AWS Certified Associate

Select Proceed without a key pair

Click Acknowledge check box

Click Launch instances

Connect to Instance

Wait for the Status checks to pass

Select the instance

Click Connect

Select EC2 Instance Connect

Click Connect

5 Copyright all rights reserved - BackSpace.Academy


BackSpace Academy AWS Certified Associate

You will now be connected to Linux operating system.

Clean Up

Go back to the Instances Page

Select Instance state

Click Terminate instance

6 Copyright all rights reserved - BackSpace.Academy


BackSpace Academy AWS Certified Associate

7 Copyright all rights reserved - BackSpace.Academy


BackSpace Academy AWS Certified Associate

Connecting to EC2 Windows

In this section, we will use an RDP client to connect to the Windows operating system of an EC2
instance.

Launch an EC2 Instance

From the AWS console search EC2

Click EC2

Select Instances -> Launch Instances

Search for Windows AMI

Click Select

8 Copyright all rights reserved - BackSpace.Academy


BackSpace Academy AWS Certified Associate

Select a t2.micro instance type

Click Review and Launch

Check that an inbound security group rule for RDP on port 3389 has been created automatically for us.

Click Launch

9 Copyright all rights reserved - BackSpace.Academy


BackSpace Academy AWS Certified Associate

Select a Create a new key pair

Click Download key pair

Click Launch instances

10 Copyright all rights reserved - BackSpace.Academy


BackSpace Academy AWS Certified Associate

Wait until Status checks have passed

Connect to Instance

Select the instance

Click Connect

SelectRDP client

Click Get password

Browse for the PEM file you created when launching the instance.

Click Decrypt Password

11 Copyright all rights reserved - BackSpace.Academy


BackSpace Academy AWS Certified Associate

Your password has now been decrypted

Click Download remote desktop file

12 Copyright all rights reserved - BackSpace.Academy


BackSpace Academy AWS Certified Associate

From your Windows computer run MSTSC (or search MSTSC from the task bar) to open the Remote Desktop
Connection app

Click Show Options

Click Open

Select the RDP file you just downloaded

Click Connect

13 Copyright all rights reserved - BackSpace.Academy


BackSpace Academy AWS Certified Associate

Click Connect’

Go back to the EC2 console and copy the administrator password

Go back to then RDP app and paste in the password

Click OK

14 Copyright all rights reserved - BackSpace.Academy


BackSpace Academy AWS Certified Associate

Click Yes

After about 5 minutes your remote desktop environment will have been created.

15 Copyright all rights reserved - BackSpace.Academy


BackSpace Academy AWS Certified Associate

Clean Up

Close out of the RDP environment

You can now disconnect from the session

Go back to the EC2 console and terminate the instance

16 Copyright all rights reserved - BackSpace.Academy

You might also like