Ubuntu - Getting Started With AWS CLI

Prerequisites

This has been tested on Ubuntu 12.04 and 14.04, but may also work on others.

Steps

Installation

Install the tools with the following commands:

sudo apt-get install python-pip -y
sudo pip install awscli

Personal Configuration

If you just want to use this for a single account with manual commands (e.g. not scripts), then perform the following steps. If you want to configure this for multiple accounts and/or scripts, then it is probably best to run the "Setup For Scripts" section instead.

Run the following command and answer the questions

aws configure

When it asks for the default output format, your choices are

json

,

table

, or

text

. Personally, I use

json

Setup For Scripts

If you followed the previous section, then you do not need to run this one.

Now we need to set up our AWS credentials for automatic authentication