willtrking/thumbor_aws — pull request #15 by Bladrak (2014-12-09 15:00:54+00:00)
Title: Added role-based connection option

This PR allows to use role-based authentication for AWS instances as described in http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-assume-role.html

By setting the ``AWS_ROLE_BASED_CONNECTION`` to ``True``, and configuring your AWS instance with the proper role, you won't need to put in AWS credentials.

I also refactored the code a bit to factorize the connection logic.