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

Unable to specify a Credentials Profile #8

Open
rob-watson opened this issue May 25, 2021 · 3 comments
Open

Unable to specify a Credentials Profile #8

rob-watson opened this issue May 25, 2021 · 3 comments

Comments

@rob-watson
Copy link

I am using the driver with a SQL Client,.
In the AwsCredentialsProviderClass there is no option to pass any profile from the credential file other than the default. Many of us work with multiple profiles in our credentials file .

In other AWS Drivers we have the option of specifying AwsCredentialsProvidersArguments , where the profile name can be passed.

At the moment I am unable to use the driver without manually copy pasting the information into the GUI rom the credentials file, which is both cumbersome and time consuming.

@qyune
Copy link

qyune commented Apr 14, 2022

I have the same issue. I need to specify a non-default profile name.

@ANHPearce
Copy link

Same here, +1 vote.

Has anybody gotten the AwsCredentialsProviderClass to work even with the [Default] profile set?

@ANHPearce
Copy link

After looking through the source code, the driver does return the DefaultAWSCredentialsProviderChain when no other custom values are supplied which means you can use things like the AWS_PROFILE environment variable as you would typically expect.

I was able to set a named profile in AWS_PROFILE environment variable and use the default ~/.aws/credentials file location and format successfully.

Here is my connection string:
jdbc:timestream://Endpoint=query-cellX.timestream.us-east-1.amazonaws.com;Region=us-east-1;MaxRetryCountClient=10;MaxConnections=5000;RequestTimeout=20000;

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

3 participants