How to Install and Use AWS CLI

The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure.

Installation

sudo apt install awscli

Setup

aws configure

This will ask you to provide:

  • Your AWS Access Key ID
  • AWS Secret Access Key
  • Default region name (top right of aaws console)
  • Default output format (json)

Example

aws s3 ls