Lab 3-1: AWS with CLI
Last updated
Last updated
For this (and future) labs, you will need to AWS CLI (Command Line Interface) tools installed.
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.
Run "aws --version" to verify installation
Submit screenshot of aws --version output
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
--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
Submit Screenshot showing that the Instance was started (Instance ID and Launch Time included)
To view instances
Get IP or DNS from decribes and now.
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)