When you setup AWS CLI and API access with “aws configure” you are prompted for several things like credentials, region, and output format.

Make sure you don’t put availability zone like “us-west-1a”, use only the region “us-west-1” which in the “config” file.  That is the one of the two files that are written to as a result of running “aws configure”.  The other file written is “credentials”.  They are plain text files.

If you do make this mistake you will get a connection error out of connection.py.

On Windows these two files are stored here:

%UserProfile%\.aws\config
%UserProfile%\.aws\credentials

On Linux the aws config and credentials files are stored here:

$HOME/.aws/config
$HOME/.aws/credentials

To see what is already there type:

aws configure list

Protect these two files or else bad things can happen – or better yet assign temporary credentials to an IAM role use them instead – but that is another post coming shortly.

More from LonzoDB on AWS

Leave a Reply

Your email address will not be published. Required fields are marked *