AWS Environment Variables required for Amazonica

I’ve decided to use the Amazonica Clojure client for the Amazon AWS api. One issue that I was having upon requiring this library was that my tests were passing locally, but my build was failing on Travis CI.

Error message:

com.amazonaws.SdkClientException: Unable to find a region via the region provider chain. Must provide an explicit region in the builder or setup environment to supply a region.

The Amazonica documentation Authentication section encourages you to set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables, but had no mention of the region.

The AWS Region Selection documentation shows that a region environment variable can be set as AWS_REGION. I this locally and in Travis, and that solved my problem!

Hopefully this saves someone else some time in the future!