How do I manually install the AWS CLI on an Amazon EC2 Windows instance?

Last updated: 2020-11-18

I want to use the AWS Command Line Interface (AWS CLI) on my Amazon Elastic Compute Cloud (Amazon EC2) Windows instance. How do I manually install the AWS CLI on an Amazon EC2 instance?

Short description

You can use the AWS CLI to manage multiple AWS services and to automate common service and resource actions through scripts.

Note: To install the AWS CLI on an instance, the instance must have internet access using a network address translation (NAT) instance or an internet gateway.

Resolution

For instructions to install the AWS CLI on a Windows instance, see Installing, updating, and uninstalling the AWS CLI version 2 on Windows.

Important: If you already have AWS CLI version 1 installed, it's a best practice to uninstall version 1 and use only AWS CLI version 2.

To view a description of a command in the AWS CLI, append help to the command. For more information, see Getting help with the AWS CLI.

For a general overview of how AWS CLI commands are structured, see Command structure in the AWS CLI.