Skip to content

Commit

Permalink
include ContainerCredentialsProvider & update aws-sdk to version 1.11…
Browse files Browse the repository at this point in the history
….28 (#51)
  • Loading branch information
rvaralda authored and chaochenq committed Sep 6, 2016
1 parent 61a6726 commit 9c29857
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</licenses>

<properties>
<aws-java-sdk.version>1.10.26</aws-java-sdk.version>
<aws-java-sdk.version>1.11.28</aws-java-sdk.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -209,4 +209,4 @@
</plugins>
</build>

</project>
</project>
2 changes: 1 addition & 1 deletion setup
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ download_dependencies() {
install -d ${dependencies_dir}

echo "Downloading dependencies ..."
aws_java_sdk_version="1.10.26"
aws_java_sdk_version="1.11.28"

remote_mvn_pkg="com.amazonaws:aws-java-sdk-core:${aws_java_sdk_version} \
com.amazonaws:aws-java-sdk-kinesis:${aws_java_sdk_version} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@
import com.amazonaws.auth.EnvironmentVariableCredentialsProvider;
import com.amazonaws.auth.InstanceProfileCredentialsProvider;
import com.amazonaws.auth.SystemPropertiesCredentialsProvider;
import com.amazonaws.auth.ContainerCredentialsProvider;
import com.amazonaws.auth.profile.ProfileCredentialsProvider;

public class AgentAWSCredentialsProviderChain extends AWSCredentialsProviderChain {
public AgentAWSCredentialsProviderChain(AgentConfiguration config) {
super(new AgentAWSCredentialsProvider(config),
new EnvironmentVariableCredentialsProvider(),
new SystemPropertiesCredentialsProvider(),
new ContainerCredentialsProvider(),
new ProfileCredentialsProvider(),
new InstanceProfileCredentialsProvider());
}
Expand Down

0 comments on commit 9c29857

Please sign in to comment.