ohnosequences / sbt-s3-resolver

:cloud:Amazon S3-based resolver for sbt
GNU Affero General Public License v3.0
117 stars 29 forks source link

Validate s3credentialsFile and fall back to DefaultAWSCredentialsProviderChain #17

Closed cloudify closed 10 years ago

cloudify commented 10 years ago

Added some functionality to validate the readability of the file set in s3credentialsFile, plus fall back to DefaultAWSCredentialsProviderChain if the credentials cannot be read from the file. This makes possible to lookup the credentials provided by the IAM instance profile on an EC2 instance.

cloudify commented 10 years ago

Never mind, I just realized that all this logic is already in ivy-s3-resolver :smile_cat:

cloudify commented 10 years ago

Perhaps you should just amend the docs saying that the credentials will be looked up from the instance metadata if the s3credentialsFile doesn't get set.

laughedelic commented 10 years ago

Sure, we will fix the docs. Thanks! I also wanted to make it possible to set credentials through the standard sbt credentials key, but don't know so far, how to make it better...