Install And Configure AWS CLI On Windows

What Is 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, you can control multiple AWS services from the command line and automate them through scripts.

Versions Of AWSCLI:


Version 1.x : The generally available version of AWS CLI, Which can be used in Production environments.


Version 2.x : This is the preview version of AWS CLI which is suitable to be used in Testing Environments.



Here is the command which is used to copy files from local machine to S3 bucket using AWS CLI.


aws s3 cp filename s3://bucketname/


Installing AWS CLI On Windows

The AWS CLI can be installed in windows opearating system using Standalone installer or pip , which is a package manager for python.

Method 1 : Installing Using .Msi Installer

We can easily install the aws command line tool in windows by just downloading the .msi installer without any additional packages.

Download the appropriate packages for your operating system.

For Windows 64-bit OS

For Windows 32-bit OS

Once the .msi installed is downloaded.

Run the .msi installer you have downloaded, Click Run , You should see the following screen , Click Next

Accept the License Agreement and click Next (twice)

And then click Install

Finally Click Finish.

Once the package is installed , Lets verify the installation of the AWS CLI.

Open the command prompt or powershell and then run the below command.

aws --version

You should get the response as shown below.

Now that we have successfully installed AWS CLI on the windows operating system and verified the same.

Method 2 : Installing AWS CLI on Windows using pip

To install the AWS CLI , command line tool using pip , First we need to install Python package if it is not already installed.

You can download the latest version of python using the below link

Once the executable installer is downloaded , Click Run

Check Add Python to the PATH and then click Install Now

The installation process starts,

Now the installation should be Successful, To verify the installation of python , Open the command prompt.

Run the below command,

python --version

The python is successfully installed.

Now lets install the AWS CLI using pip.

pip3 install awscli

I have used pip3 to install aws cli , As we have installed python version 3.8

Now that we have installed aws cli using pip.

To verify the installation of aws cli , Run the below command.

aws --version

Configure AWS CLI:


Now we have to configure awscli , For that we need AWS access_key and secret_key. If you dont have, You can go ahead and create it under an IAM users.


To do so, Login to IAM Console,




Choose Users, Click Add user to create new user,



provide a IAM user name and choose programmatic access.

Click Next:Permissions , Choose Attach existing policies directly and provide S3 bucket full access to this user.

And then click Create user

You will provided access_key and secret_access_key



You can also download as .csv.


Now run the following command on the command prompt to configure AWS CLI,


aws configure


It will access for ACCESS_KEY , SECRET_KEY and AWS_REGION.



AWS CLI is configured.


You can find the .aws/credentials file in the users home directory.

Now you should be able to access and manage the AWS services using command line interface , AWS CLI


We have successfully installed and configured AWS CLI using installer and the pip.

Hope you find it helpful.

Please do check out my other articles.