Closed nathan-gs closed 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.
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