Lab 3-1: AWS with CLI

Step 1 - Install AWS CLI

For this (and future) labs, you will need to AWS CLI (Command Line Interface) tools installed.

  1. Follow the steps to install AWS CLI version 2 for your appropriate OS at: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.htmlLinks to an external site.

  2. Run "aws --version" to verify installation

  3. Submit screenshot of aws --version output

Step 2 - Get Creds / Configure AWS CLI

Then - AWS CLI - Show. After you get this information copy and paste the following into ~/.aws/credentials. Add the line below to the file as well

Step 3 - Launch an AWS Instance

--image-id = Amazon Linux ID

--key-name = Name of ssh key

--security-groups = Name of security group

--region = region you want the instance to be deployed

  1. Submit Screenshot showing that the Instance was started (Instance ID and Launch Time included)

Step 4 - Connect to Instance

To view instances

Get IP or DNS from decribes and now.

Step 5 - Terminate Your Instance

Take not of the "instance-id" in the describe.

Submit - from the AWS Console - EC2 - Instances - Screenshot showing the terminated instance (you may need to refresh if it still shows running)

Last updated