Let started use Amazon AWS

Written by  Thursday, 01 December 2016 17:53

First, check to see if you already have Python installed:

$ python --version

If you don't have Python installed, follow the procedure at Install Python to set it up.

Next, check pip:

$ pip --help


  1. If Python 2.7 or later is not installed, install it with your distribution's package manager. The command and package name varies:

    • On Debian derivatives such as Ubuntu, use APT:

      $ sudo apt-get install python
    • On Red Hat and derivatives, use yum:

      $ sudo yum install python
    • On SUSE and derivatives, use zypper:

      $ sudo zypper install python
  1. Open a command prompt or shell and run the following command to verify that Python installed correctly:

    $ python --version Python 2.7.10

To install pip on Linux

Download the installation script from pypa.io:

$ curl -O https://bootstrap.pypa.io/get-pip.py


> pip install awscli

To upgrade an existing AWS CLI installation, use the --upgrade option:

> pip install --upgrade awscli

Linux, OS X, or Unix

$ sudo pip install awscli

If you see an error regarding the version of six that came with distutils in El Capitan, use the --ignore-installed option:

$ sudo pip install awscli --ignore-installed six


On Linux and OS X, here are the three commands that correspond to each step:

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


Test the AWS CLI Installation

Confirm that the CLI is installed correctly by viewing the help file. Open a terminal, shell or command prompt, enter aws help and press Enter:

$ aws help
1650 Read Last modified on Thursday, 12 October 2017

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.