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

pip freeze

When you are using a virtualenv, you can specify a requirements.txt file to install all the dependencies.3

Create list of dependencies
(venv)$ pip freeze > requirements.txt
Install all the dependencies
(venv)$ pip install -r requirements.txt

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 May 29, 2020 22:52:32 UTC.

Books

Linux Command Line and Shell Scripting Bible Linux Command Line and Shell Scripting Bible - Linux Command Line and Shell Scripting Bible is your essential Linux guide. With detailed instruction and abundant examples, this book teaches you how to bypass the graphical interface and communicate directly with your computer, saving time and expanding capability.


Linux Bible Linux Bible - Linux continues to be an excellent, low-cost alternative to expensive operating systems. Whether you're new to Linux or need a reliable update and reference, this is an excellent resource. Veteran bestselling author Christopher Negus provides a complete tutorial packed with major updates, revisions, and hands-on exercises so that you can confidently start using Linux today.


Learning Python Learning Python - Portable, powerful, and a breeze to use, Python is the popular open source object-oriented programming language used for both standalone programs and scripting applications.


Modern PHP: New Features and Good Practices Modern PHP: New Features and Good Practices - PHP is experiencing a renaissance, though it may be difficult to tell with all of the outdated PHP tutorials online. With this practical guide, you'll learn how PHP has become a full-featured, mature language with object-orientation, namespaces, and a growing collection of reusable component libraries.