Skip to content

Commit

Permalink
updated Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuyoshizawa committed Oct 16, 2017
1 parent ab23fb5 commit 4fc7f7c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,13 @@ The **default credentials** chain in this plugin is
awsProfile := Some("default")

s3credentials :=
new ProfileCredentialsProvider(awsProfile.value.orNull) |
new EnvironmentVariableCredentialsProvider() |
new InstanceProfileCredentialsProvider()
(awsProfile.value match {
case Some(profile) => new ProfileCredentialsProvider(profile)
case _ =>
new ProfileCredentialsProvider() |
new EnvironmentVariableCredentialsProvider() |
InstanceProfileCredentialsProvider.getInstance()
})
```

* [`new ProfileCredentialsProvider(...)`](http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/auth/ProfileCredentialsProvider.html) which loads credentials for an AWS profile config file
Expand Down

0 comments on commit 4fc7f7c

Please sign in to comment.