aws-maven icon indicating copy to clipboard operation
aws-maven copied to clipboard

AWS STS credentials do not work

Open dball opened this issue 8 years ago • 4 comments

I prefer to use aws-vault to issue temporary credentials for day-to-day AWS operations. Apparently AWS STS credentials don't work correctly until aws-java-sdk 1.8.0, while the latest release of aws-maven uses aws-java-sdk 1.7.1.

It would be cool to see a release that used a later version of aws-java-sdk.

dball avatar Aug 17 '16 18:08 dball

I'd love to see this fixed too, as it conflicts with our desire to normally run as a low-privilege user, and use assume-role to get write-access to the repository.

I notice there's no commits to this repo since 2014. Is it a dead project? Is there an alternative for deploying to S3 repos?

lewisd32 avatar Nov 16 '16 00:11 lewisd32

I wrote a maven that uses the AWS CLI to sidestep this whole mess. It's written in and for clojure but may be usable for other jvm projects: https://github.com/SparkFund/aws-cli-wagon

dball avatar Nov 16 '16 00:11 dball

@dball

Try our fork. It was updated to the latest aws-sdk:1.11.276.

<dependency>
    <groupId>com.github.platform-team</groupId>
    <artifactId>aws-maven</artifactId>
    <version>6.0.0</version>
</dependency>

moleksyuk avatar Feb 19 '18 12:02 moleksyuk

Thank you @moleksyuk. Been fighting with this all day. Was trying the spring aws-maven, and the maven-s3-wagon, both of which use pre 1.8.0 aws java libraries which do not accept temporary tokens. (found that here: https://github.com/s3-wagon-private/s3-wagon-private/issues/30

Your version works - also requires AWS_REGION.

bemowski avatar Mar 08 '18 22:03 bemowski