Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java property aws.secretAccessKey vs aws.secretKey #94

Open
dreams-and-thoughts opened this issue Jul 19, 2023 · 1 comment
Open

Java property aws.secretAccessKey vs aws.secretKey #94

dreams-and-thoughts opened this issue Jul 19, 2023 · 1 comment

Comments

@dreams-and-thoughts
Copy link

Driver version

2.1.0.17

Redshift version

8.0.2

Client Operating System

MacOS

JAVA/JVM version

openjdk 11.0.18

Problem description

  1. Expected behaviour:

Documentation states that the Java Property names are aws.accessKeyId aws.secretAccessKey & aws.sessionToken

https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html

  1. Actual behaviour:

Fails to connect.

  1. Error message/stack trace:

com.amazonaws.SdkClientException: Unable to load AWS credentials from any provider in the chain: EnvironmentVariableCredentialsProvider: Unable to load AWS credentials from environment variables (AWS_ACCESS_KEY_ID (or AWS_ACCESS_KEY) and AWS_SECRET_KEY (or AWS_SECRET_ACCESS_KEY)), SystemPropertiesCredentialsProvider: Unable to load AWS credentials from Java system properties (aws.accessKeyId and aws.secretKey), WebIdentityTokenCredentialsProvider: You must specify a value for roleArn and roleSessionName, com.amazonaws.auth.profile.ProfileCredentialsProvider@41f464f6: profile file cannot be null, com.amazonaws.auth.EC2ContainerCredentialsProviderWrapper@7239a287: Failed to connect to service endpoint:

  1. Any other details that can be helpful:

Changing to aws.secretyKey (as stated in the error) is successful.

@bhvkshah
Copy link
Contributor

Thank you for submitting this issue @dreams-and-thoughts ! I will take a look and get back to you when I have an update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants