Loading...
 
You can install the AWS CLI in a virtual environment to isolate the tool and its dependencies, or use a different version of Python than you normally do.

AWS CLI Installation

You can install the AWS CLI in a virtual environment to isolate the tool and its dependencies, or use a different version of Python than you normally do. 1

References

Virtualenv

Virtualenv is a tool to create isolated Python environments.2

Set Up

create a virtual environment based on Python 3.6
$ virtualenv ./venv -p /usr/bin/python3.6
activate the Virtualenv
$ source ./venv/bin/activate
install AWS CLI (command-line interface)
(venv)~$ pip install --upgrade awscli
  • The --upgrade option tells pip to upgrade any requirements that are already installed.
verify that the AWS CLI is installed correctly.
(venv)~$ aws --version
deactivate the Virtualenv
(venv)~$ deactivate

Profiles

The AWS CLI supports named profiles stored in the config and credentials files. You can configure additional profiles by using aws configure with the --profile option or by adding entries to the config and credentials files.

Last edited by MichaelAlber .
Page last modified on Friday November 23, 2018 00:44:30 UTC.