Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.29 KB

File metadata and controls

44 lines (30 loc) · 1.29 KB

Intallation of AWS Cli Interface

Install

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/bin

Note 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.0dev28

Configure

Set 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/credentials

This 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

References:

https://docs.aws.amazon.com/cli/index.html