Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install awscli version 2 on raspberry pi

sudo apt install awscli installs currently version 1.16.113-1

The official website (https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html) supports aarch64 but not armhf. Is there another way or something that I am missing. The differences between v1 and v2 are not that big but for example v1 does not support --storage-class DEEP_ARCHIVE

like image 220
ECII Avatar asked Jul 22 '20 09:07

ECII


People also ask

What is pip install AWS CLI?

$ pip install awscli --upgrade --user The --upgrade option tells pip to upgrade any requirements that are already installed. The --user option tells pip to install the program to a subdirectory of your user directory to avoid modifying libraries used by your operating system.

How do I find my AWS CLI version?

By default, the Amazon CLI version 1 installs to C:\Program Files\Amazon\AWSCLI (64-bit version) or C:\Program Files (x86)\Amazon\AWSCLI (32-bit version). To confirm the installation, use the aws --version command at a command prompt (open the Start menu and search for cmd to start a command prompt).

What is AWS CLI version 2?

AWS CLI v2 provides pre-built binaries for Windows, Linux, and macOS. You no longer need to have Python installed in order to use the AWS CLI. You don't have to worry about compatible Python versions, virtual environments, or conflicting python packages.

How do I download a specific version of aws command line?

For a list of versions, see the AWS CLI version 2 changelog on GitHub. In your browser, download your specific version of the AWS CLI by appending a hyphen and the version number to the filename. If you chose to manually download the AWS CLI installer package .


1 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
like image 136
James Beard Avatar answered Oct 16 '22 20:10

James Beard