awslabs / awslabs/amazon-kinesis-client-nodejs

Cannot change the Credentials Provider

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
304
Forks
198
Avg merge
36m
Merged PRs (30d)
2

Description

In the sample.properties fie, I added a different credentials Provider:
"AWSCredentialsProvider = EnvironmentVariableCredentialsProvider".
I have also set the Environment variable with correct credentials
When I run the consumer, it errors out with ::

java.util.concurrent.ExecutionException: com.amazonaws.AmazonClientException: Unable to load AWS credentials from any provider in the chain
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at com.amazonaws.services.kinesis.multilang.MultiLangDaemon.main(MultiLangDaemon.java:217)
Caused by: com.amazonaws.AmazonClientException: Unable to load AWS credentials from any provider in the chain
at com.amazonaws.auth.AWSCredentialsProviderChain.getCredentials(AWSCredentialsProviderChain.java:117)
at com.amazonaws.services.kinesis.multilang.MultiLangDaemon.prepare(MultiLangDaemon.java:123)
at com.amazonaws.services.kinesis.multilang.MultiLangDaemon.call(MultiLangDaemon.java:148)
at com.amazonaws.services.kinesis.multilang.MultiLangDaemon.call(MultiLangDaemon.java:61)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Contributor guide

Open the contributing guide

Research direction

Start by locating the sample.properties handling and the MultiLangDaemon.prepare entry point referenced in the stack trace. Trace how AWSCredentialsProvider is read and instantiated, then reproduce the consumer run with EnvironmentVariableCredentialsProvider; done means the configured provider supplies the environment credentials without the provider-chain error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, java
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.