fluent/fluent-plugin-s3 — pull request #7 by petergillardmoss (2012-11-19 17:01:33+00:00)
Title: Load aws credentials from env vars or instance profile

AWS supports loading credentials via env variables[1] and the IAM Instance Profile[2]. To achieve this you simply don't give aws any credentials.

To enable this feature I had to make the credentials non-mandatory. As they work as a pair I don't provide either unless they are both present.

Support for IAM Instance Role security is supported from aws-sdk 1.5.3 [3], I've upgraded to 1.7.1 which is currently the latest.

[1] http://docs.amazonwebservices.com/AWSRubySDK/latest/AWS/Core/CredentialProviders/ENVProvider.html
[2] http://docs.amazonwebservices.com/AWSRubySDK/latest/frames.html
[3] http://aws.amazon.com/releasenotes/0304005114813505