Installing AWS CLI version 2 on Windows

To install AWS CLI version 2 on your Windows machine, follow the steps below:

Download the AWS CLI MSI(Microsoft Software Installer) installer:

  1. Open a web browser and navigate to the official AWS CLI version 2 download page MSI Installer for AWSCLIV2

  2. Click on the "Download" button to save the MSI(Microsoft Software Installer) installer file to your computer.

Run the AWS CLI installer:

aws cliv2
  • The AWS CLI installer will open a setup wizard. Click on the "Next" button to proceed.

awscli install location
  • On the "Choose Install Location" screen, you can either accept the default installation directory or specify a different one. Click "Next" to continue.

awscli install

Complete the installation:

  1. The AWS CLI installer will now install the AWS CLI version 2.

  2. Once the installation is complete, you’ll see the "Completing the AWS Command Line Interface V2 Setup Wizard" screen. Click "Finish" to exit the installer.

Configure the AWS CLI:

  1. On the "Configuration" screen, you can choose whether to configure the AWS CLI with an AWS access key, secret key, and default region.

  2. If you select "Configure AWS CLI later," you’ll need to run the aws configure command in a command prompt or PowerShell window to set up the CLI later.

Verify the installation:

  1. Open a new command prompt or PowerShell window.

  2. Run the following command to verify that the AWS CLI is installed and accessible:

aws --version
  • If the installation was successful, you should see the AWS CLI version number displayed in the command output.

ex:
C:\Users\LENOVO>aws --version
aws-cli/2.9.13 Python/3.9.11 Windows/10 exe/AMD64 prompt/off