Menu & Search
How to Install and Configure AWS CLI on Windows

How to Install and Configure AWS CLI on Windows

Quick notes for installing & configuring AWS CLI (Version 2) on Windows (in PowerShell), the unified tool for managing AWS Services.

# Install AWS CLI.
# Configure AWS CLI.

Install AWS CLI

Download AWS CLI and run through the MSI installer.

It’s a very simple run-through, nothing to note just click Next until done.

Restart PowerShell or Visual Studio if you had either open, then check the AWS CLI Version.

Configure AWS CLI

Open AWS IAM and create/select a user with appropriate permissions. My ‘pete’ login has full Admin (AdministratorAccess Policy) in this case.

Click into Security Credentials tab within the user properties.

Scroll down to view & create Access Keys. Click to create a new key to see both the Access key ID and Secret Access Key of existing keys.

Open PowerShell and run ‘aws configure’. You’ll be prompted for:
AWS Access Key ID (above)
AWS Secret Access Key (above)
Default Region Name
Default Output Format

Once you’ve entered these details for the first time it’ll save your details, so for me above I’m just hitting enter at each prompt.

Run ‘aws sts get-caller-identity’ to confirm what you’re logged in as.