Basically follow Amazon’s instructions, but use the option to install to a bin directory in my home instead.
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
./aws/install -i $HOME/sw/aws-cli -b $HOME/sw/binNote that both the -b and -i options must be provided for the custom location isntall to work.
Test the install
$ aws --version
aws-cli/2.0.24 Python/3.7.3 Linux/5.4.0-37-generic botocore/2.0.0dev28Set up user credentials, using the [[https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html][configure command]
aws configure
The credentials are stored in a file
$HOME/.aws/credentialsThis file can be edited directly and you can add additional profiles if you have several accounts or contexts. You can also just create the $HOME/.aws directory and copy this file to another computer, but make sure it’s permissions are locked down to just your user.
chmod 700 $HOME/.aws
chmod 600 $HOME/.aws/credentials