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:
On Linux the aws config and credentials files are stored here:
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.