Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.43 KB

Setting-Up-AWS-CLI-Tools.md

File metadata and controls

37 lines (29 loc) · 1.43 KB

Setting up AWS CLI tools

Manage AWS services through terminal utilities.

Install Python 3 with Homebrew

MacOS Homebrew installs pip3 for you along with Python 3.

brew install python

Install AWS CLI

The --upgrade option tells pip3 to upgrade any requirements that are already installed. The --user option tells pip3 to install the program to a subdirectory in your user directory to avoid modifying libraries used by your operating system.

pip3 install awscli --upgrade --user

Add AWS to your path

On macOS, edit the .bash_profile file in your home directory (/Users/yourusername/.bash_profile).

  1. If you don't have a PATH variable set already, then add:
    • export PATH=/Users/yourusername/Library/Python/3.7/bin
  2. If you already have a PATH set, append it to the existing variable:
    • export PATH=/usr/local/bin:$PATH:/Users/yourusername/Library/Python/3.7/bin
  3. Save your changes to .bash_profile and exit
  4. Reload the environment variables
    • source ~/.bash_profile

Lastly, run aws --version to verify that the AWS tools are available in any terminal directory. The result should look like:

aws-cli/1.16.197 Python/3.7.3 Darwin/18.6.0 botocore/1.12.187

Resources