#Install AWS CLI on MAC
Open Terminal on MAC
-
Check for python version on your Mac
Run
python --version
For Python 2 version: 2.6.5+
For Python 3 version: 3.3+
-
Install AWSCLI package
Run
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
-
Unzip the package
Run
unzip awscli-bundle.zip
-
Test AWSCLI command
Run
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
-
Check if AWSCLI works
Run
aws help
If you see aws help screen, AWSCLI works.
-
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