jcaddel / maven-s3-wagon

Multi-threaded wagon to connect Maven with Amazon S3
123 stars 50 forks source link

Support for IAM Role based S3 access. #13

Closed nathan-gs closed 11 years ago

nathan-gs commented 11 years ago

These changes make it possible to use maven-s3-wagon without user & password in the settings.xml, when running on an Amazon EC2 instance. http://docs.aws.amazon.com/AWSSdkDocsJava/latest/DeveloperGuide/java-dg-roles.html

jcaddel commented 11 years ago

Thank you for the idea and pull request! Was not aware AWS had an option for automatically authenticating based on EC2 metadata like that.

Version 1.2.0 (released today) allows authentication without requiring username & password in settings.xml

It also now uses a provider chain that picks up authentication from system properties and environment variables as well as the IAM role associated with the instance (in addition to settings.xml)

The order of priority is system prop's -> env var's -> settings.xml -> IAM role.