Skip to content

Instantly share code, notes, and snippets.

@anamorph
Last active July 30, 2022 09:50
Show Gist options
  • Save anamorph/aaf8434d3bbad92059b3 to your computer and use it in GitHub Desktop.
Save anamorph/aaf8434d3bbad92059b3 to your computer and use it in GitHub Desktop.
HOWTO Install AWS CLI on Debian

HOWTO Install AWS CLI on Debian

1. installing pre-reqs

sudo apt-get install python python-pip

2. installing the cli:

sudo pip install awscli

3. configuring the cli:

aws configure

This will create the following configuration files in ~/.aws/ :

$ ls ~/.aws/
config      credentials

credentials

This file contains the default and additional profiles you may have configured using the 3. command, modulo a few switches as explained in the documentation at Amazon, or using aws help

config

This file contains the configuration details per profile as configured using the 3. command as follows:

$ cat ~/.aws/config
[default]
output = json
region = eu-west-1
[backup]
output = json
region = eu-central-1
@brownjd
Copy link

brownjd commented Aug 3, 2018

This needs a note that you might need "--index-url=https://pypi.python.org/simple/" for pip install.

@danielalejandrohc
Copy link

python-dev package is missing in order to get this work.

@maio1980
Copy link

on Debian 9

sudo apt-get install awscli

simple!

@rdp
Copy link

rdp commented Jun 18, 2020

On wheezy, even with

  Cannot fetch index base URL http://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement awscli

so this instead: sudo pip install awscli --index-url=https://pypi.python.org/simple/

It just gives:

Source in ./build/python-dateutil has the version 0.0.0, which does not match the requirement python-dateutil>=2.1,<3.0.0 (from botocore==1.17.5->awscli)

However installing it "from amazon" worked: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html

@marklysze
Copy link

However installing it "from amazon" worked: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html

Thanks @rdp, worked a treat on my Wheezy install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment