mvn package
You can download the pre-built jar file from the latest release here
Basically all types of credentials supported in software.amazon.awssdk.auth.credentials.internal.ProfileCredentialsUtils
:
- WebIdentityTokenCredentialsProvider
- SsoProfileCredentialsProvider
- StsProfileCredentialsProvider
- ProcessCredentialsProvider
- StaticCredentialsProvider
-
Add extra jar into Athena Driver
- Database -> Driver manager
- Select AWS/Athena -> Edit...
- Libraries -> Add File -> Select
simba-athena-driver-sso-support-1.0-jar-with-dependencies.jar
file (packaged from previous step)
-
Configure connection driver properties
AwsCredentialsProviderClass=com.github.neitomic.aws.AwsProfileCredentialsProvider
AwsCredentialsProviderArguments=<profile>
<profile> := <aws_config_file_path>,<profile_name> | <profile_name>
Examples:
- Use
dev
profile from default config file (~/.aws/config)
AwsCredentialsProviderClass=com.github.neitomic.aws.AwsProfileCredentialsProvider
AwsCredentialsProviderArguments=dev
- Use
dev
profile from custom config file (~/org/aws/config)
AwsCredentialsProviderClass=com.github.neitomic.aws.AwsProfileCredentialsProvider
AwsCredentialsProviderArguments=~/org/aws/config,dev
It would be perfect if we could add this into the driver itself.
Any comment, suggestion, fix,... are welcomed. Feel free to create issue, PR. Thanks!
Thank @sjincho for the idea of using ProfileCredentialsProvider to support different kinds of credentials (in a fork).