Open Jokerobo opened 7 years ago
Thanks for recommending this. The handling of clients in the KCL needs some updates to better integrate with the 1.11, and newer SDKs.
If anyone else is interested please respond or provide a reaction.
Given that the KPL handles credentials using a series of default fallbacks, I'd suggest this work the same way (e.g. when no credentials are passed in). Having a sample KPL working using ~/.aws/credentials already, it felt strange to have to set things up again "manually" to create a reader.
Hi there,
I'm using KCL and providing fully configured dynamo & cloudwatch & kinesis client to the worker. I managed to make it work without specifying dynamo and cloudwatch credential providers directly to the worker but to the aws client instead. However, seems like a kinesis credential provider is required, even though my kinesis client is preconfigured with a credential provider. I'm getting a null pointer exception when I didn't specify kinesis client credential provider.
Can we make kinesis credential provider optional? Feels weird to pass the credential provider twice to both kinesis client and the worker.
Related code can be found here in Worker.build():
And this is where credential provider will be invoked throwing a NullPointerException: