As promised we are back with yet another blog describing one of the basic tools to communicate with the AWS service. Yes, you guessed right it is AWS CLI. It is the method to connect with AWS service locally and fetch your important data without going into the UI. Here, we will explain to you the setup of AWS CLI on different platforms i.e Mac, Windows, and Linux.

The AWS CLI is a unified tool to manage AWS services. With just one tool to download and configure, we can control multiple AWS services from the command line and automate them through scripts.

Let’s discuss the installation and setup of AWS CLI.

Installation Guide

βœ” Windows

You can install version 1 of the AWS Command Line Interface (AWS CLI) on Windows by using a standalone installer (recommended) or  pip, which is a package manager for Python.

πŸ“” Install the AWS CLI version 1 using the MSI installer

Check theΒ ReleasesΒ page on GitHub to see when the latest version was released. When updates are released, you must repeat the installation process to get the latest version of the AWS CLI version 1.1

  1. Download the appropriate MSI installer:
  2. Run the downloaded MSI installer or the setup file.
  3. Follow the on-screen instructions. By default, the AWS CLI version 1 installs to  C:\Program Files\Amazon\AWSCLI (64-bit version) or  C:\Program Files (x86)\Amazon\AWSCLI (32-bit version).
  4. To confirm the installation, use the  aws --version command at a command prompt (open the Start menu and search for cmd to start a command prompt).

If Windows is unable to find the program, you might need to close and reopen the command prompt to refresh the path and add the path manually.

πŸ“” Install the AWS CLI version 1 using pip
  1. To Install the AWS CLI version 1, use the pip3 command (if you use Python version 3 or later) or the  pip command. For the latest version of the AWS CLI, use the following command block:

2. Verify that the AWS CLI version 1 is installed correctly.

βœ” Linux/macOS

πŸ“” Install the AWS CLI version 1 using pip
  1. Use the  pip or  pip3 command to install or update the AWS CLI. We recommend that if you use Python version 3 or later that you use the  pip3 command.
    • For the latest version of the AWS CLI, use the following command block:

2. Verify that the AWS CLI is installed correctly.


This section explains how to quickly configure basic settings that the AWS Command Line Interface (AWS CLI) uses to interact with AWS. These include your security credentials, the default output format, and the default AWS Region.

The  aws configure command is one of the ways to set up your AWS CLI installation. When you enter this command, the AWS CLI prompts you for four pieces of information:

  • Access Key
  • Secret Key
  • Output
  • Region
Securely Using AWS CLI Credentials with Summon - Summon - CyberArk Commons


A collection of settings is called a profile. By default, the AWS CLI uses the default profile. You can create and use additional named profiles with varying credentials and settings by specifying the  --profile option and assigning a name. This will help the settings to be specific to a certain user.

The following example creates a profile named  userone.

The following profiles will look something like the below in ~/.aws/credentials

Congratulations!! you have successfully installed and set up AWS CLI on your specific platform (Mac, Windows, Linux). You would be able to communicate well with your AWS services and automate the process which will make it easier to interact.

I hope you enjoyed the article and if you found this useful, then please share it with your friends and colleagues. If this post helps you, spread this so that other people can also benefit.

If you have any queries please feel free to post them in the comments section or anything that you want to ask through mail contact.

Thank youπŸ˜‰

Also read,

AWS Solutions Architect Certification Preparation – (SAA-C02) Explain this keyword in JS with examples What are the events in Javascript? How does the event function work? [7] Advanced and Useful Linux – Ubuntu Commands How to revert or undo last commit in Git? Explain For, While, Do-While Loops in JS and more Setup AWS CLI on MAC, Windows, and Linux