aws / amazon-neptune-gremlin-java-sigv4

A Gremlin client for Amazon Neptune that includes AWS Signature Version 4 signing.
Apache License 2.0
27 stars 17 forks source link

ChainedSigV4PropertiesProvider does not allow AWS credentials from the DefaultAWSCredentialsProviderChain #22

Closed crosleyj closed 4 years ago

crosleyj commented 4 years ago

I want to use the DefaultAWSCredentialsProviderChain to call Neptune, but this appears to be impossible because during the construction the credentials provider the credentials are required in the environment or system variables.

floschmedding commented 4 years ago

Hi crosleyj, I think using DefaultAWSCredentialsProviderChain works for the credentials. It's only the parameter SERVICE_REGION that needs to be provided as environment or system variable. Would that work for your use case? Best regards, Florian

00linglin commented 4 years ago

@floschmedding can we add AWS_REGION as well instead of just looking for SERVICE_REGION, in Lambda AWS_REGION is pre-populated

crosleyj commented 4 years ago

SERVICE_REGION worked for me, but I am indeed using Lambda so AWS_REGION would be nice to have too

floschmedding commented 4 years ago

Thanks for the updates and the feedback! We track usage of AWS_REGION in https://github.com/aws/amazon-neptune-gremlin-java-sigv4/issues/23, so I'm closing this issue.