Giter Club home page Giter Club logo

Comments (16)

srowen avatar srowen commented on June 4, 2024 1

Yes, my question was more about the authoritative environment variable name rather than the right English name. Do these actually vary, maybe not by design but in fact? For example that second like definitely shows setting "AWS_ACCESS_KEY" and not "AWS_ACCESS_KEY_ID" as the official name for the EC2 command line tools. If it's just that the SDK uses a different property name, that's OK by me; was just checking that this is intentional.

from aws-sdk-java.

fulghum avatar fulghum commented on June 4, 2024

Hey Sean, if you log into your AWS account and go to the AWS security credentials page:
https://portal.aws.amazon.com/gp/aws/securityCredentials

you'll see the authoritative names for these:
Access Key ID
Secret Access Key

Tools often abbreviate these to:
Access Key
Secret Key

but there are a few variations out there, as you noticed.

from aws-sdk-java.

ogrodnek avatar ogrodnek commented on June 4, 2024

Agree this has been a bit annoying... especially since the aws ruby SDK uses AWS_ACCESS_KEY_ID : https://github.com/aws/aws-sdk-ruby/blob/master/lib/aws/core/credential_providers.rb

from aws-sdk-java.

stephenh avatar stephenh commented on June 4, 2024

So, EnvironmentVariableCredentialsProvider picked the authoritative name for one ("AWS_ACCESS_KEY_ID") but the conventional name for the other ("AWS_SECRET_KEY")? That's even more confusing.

Seems like, with all the confusion out there, plus needing to maintain backwards compatibility, the best thing to do would be for this to check both the authoritative and conventional environment variables.

from aws-sdk-java.

wmatveyenko avatar wmatveyenko commented on June 4, 2024

Closing as this was merged.

from aws-sdk-java.

stephenh avatar stephenh commented on June 4, 2024

Why was this closed? AFAICT only AWS_SECRET_KEY is referenced from:

https://github.com/aws/aws-sdk-java/blob/master/src/main/java/com/amazonaws/auth/EnvironmentVariableCredentialsProvider.java

@wmatveyenko what merge are you talking about?

from aws-sdk-java.

stephenh avatar stephenh commented on June 4, 2024

(Specifically, I believe EnvironmentVarialbeCredentialsProvider should check both AWS_SECRET_KEY and AWS_SECRET_ACCESS_KEY.)

Maybe I'll just go make a pull request...

from aws-sdk-java.

wmatveyenko avatar wmatveyenko commented on June 4, 2024

I apologize for closing this in error. I was reading the comments and mistook the referenced pull request as a pull request to the SDK. Please submit a pull request to fix this issue.
Thanks!

from aws-sdk-java.

wmatveyenko avatar wmatveyenko commented on June 4, 2024

Closing this issue for now. When you have the pull request, feel free to reopen.

from aws-sdk-java.

stephenh avatar stephenh commented on June 4, 2024

Pull request submitted--not sure I can reopen the issue. But let me know if you have any feedback. Thanks!

from aws-sdk-java.

wmatveyenko avatar wmatveyenko commented on June 4, 2024

Reopening for you :-)

from aws-sdk-java.

wmatveyenko avatar wmatveyenko commented on June 4, 2024

Resolving again in favour of the pull request.

from aws-sdk-java.

stephenh avatar stephenh commented on June 4, 2024

I saw that 1.6.2 got released a few days ago, but it looks like this change was not in it.

You seem to be making source drops from some internal repository.

Which is fine, but did this patch not get submitted to your internal repository?

from aws-sdk-java.

fulghum avatar fulghum commented on June 4, 2024

Hey Stephen, sorry for the confusion on this one! The issue was closed, so I understand why you'd expect the fix to show up in a release, but the pull hadn't actually been merged in yet.

But... I just went ahead and merged in your pull request, so you'll definitely see this fix go out in the next SDK release!

Thanks again for taking the time to report this and send us a fix!

from aws-sdk-java.

stephenh avatar stephenh commented on June 4, 2024

Sounds great, thanks Jason!

from aws-sdk-java.

manoharreddyporeddy avatar manoharreddyporeddy commented on June 4, 2024

List of all environment variables: http://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html

from aws-sdk-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.