hands-on lab

Introduction to the AWS CLI

Difficulty: Beginner
Duration: Up to 1 hour
Students: 9,473
Rating: 4.6/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.

During this Lab, you will learn how to configure the AWS CLI, leverage the built-in help tool, and set up an S3 website using the AWS CLI.

Learning Objectives

By the end of this Lab, you should be able to:

  • Configure the AWS CLI
  • Use the AWS CLI help to get more information
  • Create an S3 bucket with the AWS CLI
  • Send files from your local machine to S3 buckets using the AWS CLI
  • Configure static website hosting on Amazon S3 using the AWS CLI

Prerequisites

This is a beginner-level Lab. Knowledge of the following will be beneficial but is not required:

  • Linux at the command-line
  • Basic features of the IAM service
  • Basics of S3 including buckets, objects, and access control lists (ACLs)

The following course and labs can be used as prerequisites:

Updates 

April 27th, 2023 - Resolved S3 issue

March 30th, 2023 - Updated screenshots and instructions to reflect latest UI

March 12th, 2023 - Resolved an issue that caused the lab to fail to set up on rare occasions

January 10th, 2019 - Added a validation Lab Step to check the work you perform in the Lab

Covered topics

Lab steps

Logging In to the Amazon Web Services Console
Creating an Access Key
Connecting to an EC2 Instance Using Amazon EC2 Instance Connect
Configuring the AWS CLI
Working with the AWS CLI
Operating Amazon S3 with the AWS CLI