From standard repositories
sudo apt-get install awscli
Or from pip repository
sudo apt-get install python python-pip
sudo pip install awscli
Configuring the cli:
aws configure
This will create the following configuration files:
$ ls ~/.aws/
config credentials
credentials - This file contains the default and additional profiles. Sample:
[default]
aws_access_key_id = AKIAIOSFODNN7EXAMPLE
aws_secret_access_key = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
config - This file contains the configuration details. Sample:
$ cat ~/.aws/config
[default]
output = json
region = eu-west-1
[backup]
output = json
region = eu-central-1