This article was created to document the steps to configure and utilize the AWS CLI on a Windows machine.
There are multiple ways of installing the AWS CLI but I choose the method of using the Python with pip3 since I already have the tool install on my Windows 10 machine.
- After you install the python on your windows system from python.org
2. You will run the following command to ensure it is working from the command prompt
python –version
3. You will then use the python utility pip3 and check if it is installed using the following command:
pip3 –version
4. Once the version is displayed without any errors, you can proceed to installing the AWS CLI using pip3. You will do this by using the command below:
pip3 install awscli
5. After the installation is complete. proceed to test that the AWS CLI is working:
where aws
Once the folder path of the AWS CLI is shown, then you have successfully installed the CLI.
Now the next step is to configure it for use with your AWS service. This can be done by running the following aws command:
aws configure
It will prompt you for the AWS Access key ID, Secret Access Key, default Region and default output format. This allows you to connect to the AWS without authenticating each time. I would recommend that you setup an IAM user account to authenticate with the AWS CLI and limit the access to only the features that will be accessed using this method.
For further details, please consult the AWS CLI documentation here.