hands-on lab

Introduction to the AWS CLI

Beginner
1h
9,335
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.
Lab 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

About the author
Avatar
Eric Magalhães
DevOps Consultant
Students
29,718
Labs
7

Eric Magalhães has a strong background as a Systems Engineer for both Windows and Linux systems and, currently, work as a DevOps Consultant for Embratel. Lazy by nature, he is passionate about automation and anything that can make his job painless, thus his interest in topics like coding, configuration management, containers, CI/CD and cloud computing went from a hobby to an obsession. Currently, he holds multiple AWS certifications and, as a DevOps Consultant, helps clients to understand and implement the DevOps culture in their environments, besides that, he play a key role in the company developing pieces of automation using tools such as Ansible, Chef, Packer, Jenkins and Docker.

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