seahen / maven-s3-wagon

A Maven Wagon provider for accessing Amazon's Simple Storage Service (S3)
Other
43 stars 24 forks source link

How to use AWS profile to access credentials #26

Open jhchee opened 2 years ago

jhchee commented 2 years ago

Hi everytime i have to do such: export AWS_ACCESS_KEY_ID=$ak export AWS_SESSION_TOKEN=$st export AWS_SECRET_ACCESS_KEY=$sk

Is there a way to read the credentials from ~/.aws/credentials file.

oravecz commented 1 year ago

It appears the code (https://github.com/seahen/maven-s3-wagon/blob/master/src/main/java/org/kuali/maven/wagon/auth/MavenAwsCredentialsProviderChain.java#L37) does not allow for the configuration or passing of a profile name to the AWS class that checks the credentials file. Basically useless as an auth mechanism unless you are using the default profile for your credentials.