setting up aws cli version 2 on macos

2020-05-28

 | 

~1 min read

 | 

122 words

The steps to install AWS CLI on MacOS (requires sudo permission):

  1. Download installer via cURL
  2. Run the standard installer
  3. Confirm the installation

If only installing for a single user (or do not have sudo permissions), there are some additional steps which AWS documents in their installation guide.

Download Installer Via cURL

curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"

Run The Standard Installer

sudo installer -pkg AWSCLIV2.pkg -target /

If the target remains -target /, the files will be installed at /usr/local/aws-cli with a symlink automatically created in /usr/local/bin. sudo is required to grant write access to those directories.

Confirm Installation Was Successful

$ which aws
/usr/local/bin/aws
$ aws --version
aws-cli/2.0.10 Python/3.7.4 Darwin/19.4.0 botocore/2.0.0dev14


Hi there and thanks for reading! My name's Stephen. I live in Chicago with my wife, Kate, and dog, Finn. Want more? See about and get in touch!