sbt / sbt-s3

sbt-s3 is a simple sbt plugin to manipulate objects on Amazon S3
Apache License 2.0
63 stars 29 forks source link

Use Default aws credentials chain for configuration #20

Closed frosforever closed 9 years ago

frosforever commented 9 years ago

DefaultAWSCredentialsProviderChain chains together multiple default credentials providers and matches on the first to succeed. This way, machines that have the aws-cli set up, as well as EC2 instances will have their credentials loaded.

From the aws javadocs:

AWS credentials provider chain that looks for credentials in this order:

  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
  • Instance profile credentials delivered through the Amazon EC2 metadata service
cunei commented 9 years ago

This is a useful change; thanks for your contribution!