Skip to content

Instantly share code, notes, and snippets.

@supriya-premkumar
Last active March 7, 2017 19:51
Show Gist options
  • Save supriya-premkumar/f51b4c61ac984c93934381dfa3d78454 to your computer and use it in GitHub Desktop.
Save supriya-premkumar/f51b4c61ac984c93934381dfa3d78454 to your computer and use it in GitHub Desktop.
Documentation of AWS CLI Installation on Mac

#Install AWS CLI on MAC

Open Terminal on MAC

  1. Check for python version on your Mac

    Run python --version

    For Python 2 version: 2.6.5+

    For Python 3 version: 3.3+

  2. Install AWSCLI package

    Run curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"

  3. Unzip the package

    Run unzip awscli-bundle.zip

  4. Test AWSCLI command

    Run sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws

  5. Check if AWSCLI works

    Run aws help

    If you see aws help screen, AWSCLI works.

  6. Configure AWS Environment

Run aws configure

now you will be prompted to fill Access Key ID and Secret Access Key Which you can create under your account --> My Security Credentials --> Download the csv file which contains the credentials

     AWS Access Key ID [None]: <AWS Access Key ID>

     AWS Secret Access Key [None]: <AWS Secret> 
     
     Default region name [None]: us-west-2 
     
     Default output format [None]: json 

More Details can be found at http://docs.aws.amazon.com/cli/latest/userguide/installing.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment