How to install awscli version 2 on raspberry pi

Viewed 4329
4 Answers

Got this to work on a Raspberry Pi 2 by checking out and installing directly from the awscli v2 branch on github.

You'll need to run a modern python (3.6+?), so the whole procedure is isolated in its own venv so as not to mess up system python.

Based roughly on these directions https://github.com/aws/aws-cli/tree/v2#cli-dev-version we get:

$ git clone https://github.com/aws/aws-cli.git
$ cd aws-cli && git checkout v2
$ pip3 install -r requirements.txt
$ pip3 install .

$ aws --version
aws-cli/2.1.14 Python/3.9.1 Linux/4.19.66+ source/armv6l.raspbian.9 prompt/off

aws cli v2 is still not available in the Python Package Index(PyPI) repository. I have passed the instruciton below for "How to install aws cli v2"

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

how to configure aws cli v2 command line completion permanently

complete -C '/usr/local/bin/aws_completer' aws
echo "complete -C '/usr/local/bin/aws_completer' aws" >>  ~/.bashrc 
source ~/.bashrc  

now you can check by typing any partial command and press the tab key aws s<TAB>

Related