Saturday, June 17, 2017

AWS Command Line Interface

Use pip to install the Amazon Web Services CLI (command line interface) per Amazon's instructions.

$ pip install awscli
$ aws --version
aws-cli/1.11.107 Python/2.7.13 Darwin/16.6.0 botocore/1.5.70


As of the time of this writing, aws-shell which looks as though it may be something similar, is in developer preview so I will ignore it for the remainder of this post.

Once you have the CLI installed, you will need to navigate your browser to http://console.aws.amazon.com and create an account if you do not yet have one and then access 'My Security Credentials' under your account settings which are in the upper right of the screen.

Click 'Create Secure Access Key' on the security credentials screen and download the file that Amazon generates. Once downloaded, open the rootkey.csv file with TextEdit. Run the aws configure command and enter the ID and key values in the CSV file where ID and Key are prompted for. Note that us-east-2 is the region for my location of Dallas.

$ aws configure
AWS Access Key ID [None]: __________
AWS Secret Access Key [None]: __________
Default region name [None]: us-east-2
Default output format [None]: json