jcaddel / maven-s3-wagon

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

added support for auth profiles defined in ~/.aws/credentials file #18

Open adamcin opened 9 years ago

adamcin commented 9 years ago

Now, after checking the auth info from settings.xml, the provider chain will then check for credentials in 2 new ways before trying the IAM instance profile:

  1. use the source repository id to look up a specific AWS profile from ~/.aws/credentials (created using the cli command aws configure).
  2. look for a profile in the same manner as above, using the value of the AWS_PROFILE environment variable if it is set, or otherwise look for a profile named default.

I upgraded the AWS SDK dependencies to the latest version (1.9.16) in order enable this support