trustpilot / kafka-connect-dynamodb

A Kafka Connect Source Connector for DynamoDB
MIT License
56 stars 32 forks source link

Supporting AWS profiles (AWS_PROFILE=) #5

Closed ebarault closed 3 years ago

ebarault commented 4 years ago

Hi,

Although the code already handles the default credentials provider chain: https://github.com/trustpilot/kafka-connect-dynamodb/blob/master/source/src/main/java/com/trustpilot/connector/dynamodb/aws/AwsClients.java#L46, this does not works when using a local profile, but fails with the following error message:

To use assume role profiles the aws-java-sdk-sts module must be on the class path.

In order to fix this, the following line should be added in the build.gradle:

compile group: 'com.amazonaws', name: 'aws-java-sdk-sts', version: '1.11.846'
ebarault commented 3 years ago

thank-you @raimondast i'll test this