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

Support ~/.aws/credentials authentication

Open xentek opened this issue 9 years ago • 5 comments

The aws-sdk and aws-cli can both use ~/.aws/credentials as the source for the access and secret keys. Indeed, the aws-sdk uses this as one of the methods in the DefaultAWSCredentialsProviderChain. The benefit of this method is that you aren't forced to pollute your global ENV vars with access keys (especially when you have more than one set).

Thanks for considering making this change! Keep up the good work.

xentek avatar Sep 12 '14 02:09 xentek

:+1: on this one.

mjallday avatar Sep 26 '15 18:09 mjallday

👍

wrasdf avatar Jul 21 '16 00:07 wrasdf

👍

zdmytriv avatar Mar 28 '17 18:03 zdmytriv

We're maintaining a custom branch that will resolve this.

https://github.com/verygoodsecurity/aws-maven

<pluginRepositories>
    <pluginRepository>
        <id>bintray-vgs</id>
        <name>bintray-vgs</name>
        <url>https://dl.bintray.com/vg/vgs-misc</url>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </pluginRepository>
</pluginRepositories>

and

<extension>
    <groupId>io.vgs.tools</groupId>
    <artifactId>aws-maven</artifactId>
    <version>1.4.3</version>
</extension>

Will give you the default provider chain

mjallday avatar Apr 01 '17 16:04 mjallday

Try our fork. It supports aws cli credentials.

<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