Refer to the following guide to learn how to use IAM in the cloud\
<https://scribehow.com/shared/Creating_an_IAM_User_and_User_Group_in_AWS_Management_Console__hWNiiXlcRJKFqYZZEJD-cg>
Refer to the following guide to learn how to create an EC2 instance\
<https://scribehow.com/shared/AWS__Creating_your_first_EC2_Instance__Xcu7ZVCdRfWx56YVktKgbQ>
1
Sign in to **AWS Management Console** as an **IAM User**
**Pre-requisite** - Ensure you have selected the AWS region closest to your location\
For this guide, we will be using us-east-2 (Ohio) as a preferred choice
2
Type **EC2** in the search bar and click on **EC2** to view the EC2 Dashboard
3
On the EC2 dashboard click on **Instances** from the left bar to view the EC2 instances
4
Select the instance named - **First EC2 Instance**
5
Click on the **Instance State** button from the top right of the page to either **Stop**, **Reboot** or **Terminate** the running instance
6
Click on **Connect** button to Connect to the EC2 Instance
7
Connect to instance wizard will open
Choose the **EC2 Instance Connect** option to connect directly from the **AWS Console**
8
Click on the **Connect** button to connect to the instance using the **EC2 Instance Connect** option provided by **AWS**
9
You will be successfully connected to your **EC2 Instance**
Type "**[[whoami]]**" command in the terminal to view your username
10
You can alternatively select **SSH Client** for connecting to your Linux instance
For connecting to your Linux instance from the Windows machine follow the guide provided by AWS - <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connect-linux-inst-from-windows.html>
For **macOS** and other OS refer to the following AWS guide -<https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connect-linux-inst-ssh.html>
Refer to this guide to learn how to connect to an EC2 instance using an SSH client for windows<https://scribehow.com/shared/EC2_Security__Key_Pairs__ela-k4odQECNdYLokYKFFQ>
Congratulations on completing this lab and learning How to Connect to an AWS EC2 Instance! Good job!