exasol / spark-connector

A connector for Apache Spark to access Exasol
Apache License 2.0
12 stars 7 forks source link

Add support for AWS IAM Profile Credentials for S3 variant #192

Closed morazow closed 1 year ago

morazow commented 1 year ago

Situation

With Exasol Spark Connector (SEC) S3 variant we are accessing S3 buckets temporary data storage. To access the buckets users should provide AWS credentials (Access Key and Secret Key) with enough permission as Spark options.

However, spark-connector should also support using AWS instance profile credentials for the cases when Spark clusters is running in EC2 instances. This allows ease of use and less operational hurdles.

We add AWS DefaultCredentialsProviderChain to the underlying S3 client so that it looks for credentials in order:

Acceptance Criteria

References

morazow commented 1 year ago

One possible limitation:

We should check first that Exasol CSV Loader can work with IAM Policy provided credentials.

morazow commented 1 year ago

IAM crendentials could be enable for CSV loader with database parameters: https://exasol.my.site.com/s/article/Changelog-content-15155?language=en_US.

I would suggest to extend the effort since this would also require changes in the CSV query generator classes.

Shmuma commented 1 year ago

7 days