Commands to Install AWS CLI – standalone mode
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" unzip awscli-bundle.zip ./awscli-bundle/install -b ~/bin/aws
After installing AWS CLI, configure it using the aws configure command
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]: ENTER
Note
By default, the install script runs under the system default version of Python. If you have installed an alternative version of Python and want to use that to install the AWS CLI, run the install script with that version by absolute path to the Python executable. For example:
$ /usr/local/bin/python2.7 awscli-bundle/install -i /usr/local/aws
The installer installs the AWS CLI at /usr/local/aws
and create the symlink aws
at the /usr/local/bin
directory. Using the -b
option to create a symlink eliminates the need to specify the install directory in the user’s $PATH
variable. This should enable all users to call the AWS CLI by typing aws
from any directory.
To see an explanation of the -i
and -b
options, use the -h
option:
$ ./awscli-bundle/install -h