Installing AWS CLI - spaceshiptrip/raspberrypi GitHub Wiki

Look at guide: https://ownthe.cloud/posts/configure-aws-cli-on-raspberry-pi/

Configure the AWS CLI on a Raspberry Pi The AWS Command Line Interface (AWS CLI) is an open source tool that enables you to interact with AWS services using commands in your command-line shell. With minimal configuration, you can start using functionality equivalent to that provided by the browser-based AWS Management Console from the command prompt in your favorite terminal program.

Here are the steps Install AWS CLI Install Pip3

sudo apt-get install python3-pip Then install the AWS CLI

pip3 install awscli --upgrade --user Add AWS CLI executable to your Command Line Path

export PATH=/home/pi/.local/bin:$PATH Confirm successful install and version

aws --version Configure AWS CLI 5. Configure the default AWS CLI

aws configure
AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE
AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Default region name [None]: us-west-2
Default output format [None]: json
  1. (Recommended) Configure with multiple profiles
aws configure --profile myuser

Now you can use

aws s3 ls This will use the “default” profile with no user specified

Or you can use this to specify the “myuser” profile to run the command with

aws s3 ls --profile myuser 7. The AWS CLI configuration files are located here

~/.aws/credentials #User credentials
~/.aws/config #Profile settings

AWS Guides Install Pip3 https://docs.aws.amazon.com/cli/latest/userguide/install-linux.html#install-linux-pip AWS CLI Install Linux https://docs.aws.amazon.com/cli/latest/userguide/install-linux.html AWS CLI Configuration https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html