Step 1 - Open the AWS Systems Manager Console

  1. Once you’ve gained access to the AWS Management Console for the lab, double check the region is correct and the TeamRole is selected.

  2. In the services search bar, search for Systems Manager and click on it to open the AWS Systems Manager section of the AWS Management Console.

  3. In the AWS Systems Manager console, locate the menu in the left, identify the section “Node Management” and select “Session Manager” from the list.

  4. Choose “Start session” to launch a shell session.

  5. Click the radio button to select the EC2 instance for the lab. If you see no instance, wait a few minutes and then click refresh. Wait until the ec2 instance beginning with name mod-XXXXXXXXXXXXXXXX is available before continuing.

  6. Click in the Start Session button (This action will open a new tab in your browser with a new black shell).

  7. In the new black shell, switch to the ec2-user account by running sudo su - ec2-user

    sudo su - ec2-user
  8. run shopt login_shell and be sure it says login_shell on. Then, change into the workshop directory to begin: cd ~/workshop

    #Verify login_shell is 'on'
    shopt login_shell
    #Change into the workshop directory
    cd ~/workshop

    The output of your commands in the Session Manager session should look like the following:

    sh-4.2$ sudo su - ec2-user
    [ec2-user@ip-172-31-24-0 ~]$ #Verify login_shell is 'on'
    [ec2-user@ip-172-31-24-0 ~]$ shopt login_shell
    login_shell     on
    [ec2-user@ip-172-31-24-0 ~]$ #Change into the workshop directory
    [ec2-user@ip-172-31-24-0 ~]$ cd ~/workshop