Installation

Overview

The following section goes over the install of the AWS CLI on Windows, MacOS, and Linux. Additionally instructions are setup to configure user/role to authenticate with your AWS account.

How to Install AWS CLI

Install AWS CLI

  1. Windows: Download the installer from the AWS CLI download page and follow the installation wizard.

  2. macOS: Open a terminal and run:

    brew install awscli
  3. Linux: Run these commands in the terminal:

    curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
    unzip awscliv2.zip
    sudo ./aws/install

Verify the Installation

In your terminal or command prompt, type:

aws --version

You should see output like:

aws-cli/2.x.x Python/X.x.x Linux/x86_64

How to Configure AWS CLI

Step 1: Generate IAM Credentials

  1. Open the AWS Management Console.

  2. Go to IAM > Users > Add User.

  3. Assign programmatic access and download the access key ID and secret access key.

Step 2: Configure AWS CLI with Credentials

In your terminal, type:

aws configure

You’ll be prompted to enter:

  • Access Key ID: (from the IAM user)

  • Secret Access Key: (from the IAM user)

  • Default region: (e.g., us-east-1)

  • Output format: (e.g., json, text, or table)

AWS CLI will store these settings in ~/.aws/credentials and ~/.aws/config.

Last updated