Install and Configure the AWS CLI

Learn how to install and configure the AWS CLI.

Instal the AWS CLI

In order to use AWS CLI for doing operations with services on AWS, AWS CLI must be installed on your system.

Please use the below given official documentation links for installing AWS CLI on Windows, Linux, and macOS.

Configure the AWS CLI

After installing the AWS CLI, you need to configure it so it can communicate with services on your AWS account.

  1. Open the terminal on your device and run the following command:
aws configure
  1. Enter the AWS Access Key ID, AWS Secret Access Key, Default region name, and Default output format in the prompt:
AWS Access Key ID [None]: your_acces_key
AWS Secret Access Key [None]: your_secret_accesskey
Default region name [None]: aws_region 
Default output format [None]: json

The following is the AWS CLI command format:

aws [options] <command> <subcommand> [parameters]

Get hands-on with 1200+ tech skills courses.