AWS-CLI on Linux

Installation Guide

January 14, 2019

This guide will explain how to install Amazon Web Services Command Line Interface (AWS-CLI) on Linux.

Step 1

Check your Python installation to ensure it’s either version 2.6.5+ version 3.3+:


      python --version

If your version of Python does not meet these standards, please read our Guide to Upgrading Python on Linux.

Step 2

Download, unzip, and run the AWS-CLI installation package:


      sudo curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
sudo unzip awscli-bundle.zip
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws

Step 3

To ensure that the package is installed correctly, run:


      aws --version

If you get an answer that looks like this, AWS-CLI is correctly installed:

aws-cli/1.16.72 Python/2.7.10 Darwin/18.2.0 botocore/1.12.62

To learn how to configure AWS-CLI, read our How-To.

Notice an error?

Have we got something wrong? Please let us know and we’ll fix it right away.

Categories
AWS Linux

Join the Discussion

Your email address will not be published. Required fields are marked *