aws-maven
aws-maven copied to clipboard
Order or priority for credentials seems incorrect
Despite the name of the class, the current order of priority in the chain defined in AuthenticationInfoAWSCredentialsProviderChain
puts the AuthenticationInfoAWSCredentialsProvider
last in the chain: https://github.com/spring-projects/aws-maven/blob/ce6a4ffbd8a59029ebe147124ac2d7ff1a7afd18/src/main/java/org/springframework/build/aws/maven/AuthenticationInfoAWSCredentialsProviderChain.java#L31
This causes explicit credentials to be ignored if any of the other types of credentials are found first. In my case, credentials are being picked up from the instance profile, which are not the ones I want to use. This should be a common case when connecting with an S3 repository in another AWS account, for example.
Hi @luispollo It's fixed in our fork. Try it.
<dependency>
<groupId>com.github.platform-team</groupId>
<artifactId>aws-maven</artifactId>
<version>6.0.0</version>
</dependency>