EC2 Connection

Connect EC2

  1. Access the AWS Management Console interface

    • Find EC2
    • Select EC2

Connect EC2

  1. In EC2 interface

    • Select SID-security-instance
    • Select Connect

Connect EC2

  1. In the Connect to instance interface

    • Select EC2 instance Connect
    • Select Connect

Connect EC2

  1. Successful connection

Connect EC2

  1. Run the following commands to set up the AWS CLI.
aws configure
  • Then use Access key and configure.

Connect EC2

  1. Create a credential file for use by the AWS CLI with the following command. This will allow you to easily switch between two different IAM users.
cd ~/.aws
en credentials

Connect EC2

  1. Type i and press enter to enter insert mode

    • Now copy and paste the updated credential file from your text editor into your vi session. It will look like the following, but with your unique Access Keys.

Connect EC2

  1. Press esc** then type :wq! and press enter to save and exit vi.

Connect EC2

You will use this SSH session throughout this lab.