QwikSkills Support

AWS Labs
Access EC2 from Session manager and send SSH logs to CloudWatch

Access EC2 from Session manager and send SSH logs to CloudWatch

Difficulty Level
Lab Duration
45 Min
About Lab


This lab walks you through the steps to launch an EC2 instance with SSM role and then connect to the EC2 via AWS Session manager and view the logs in Cloudwatch.

What Will You Learn?

Upon completion of this lab you will be able to:

  • Create an IAM Role.
  • Create a CloudWatch Log group.
  • Create an EC2 instance.
  • Configure Session Manager.
  • Start and Terminate a session.
  • View the logs in CloudWatch.


No prior experience is required for performing this lab.

Lab Steps:

1. Starting a lab

  • Every AWS lab on the QwikSkills platform has a uniform user interface. You will see the below screen whenever you open up any lab.
  • The blue colored “Start Lab” button will set up the temporary username and password and assign the required cloud permissions in the background. Click on the button to start the lab.

2. Opening AWS Portal

  • After you have clicked the start button, the cloud environment is created for the lab and you can use your temporary AWS cloud interface using the provided username and password shown on the screen.
  • Click on the “Open Console” button. You will be redirected to the AWS Portal in the new tab. If yo