awslabs / awslabs/amazon-kinesis-client-nodejs

Unable to construct any provider with name KclStsAssumeRoleCredentialsProvider

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

Description

node kcl version: 2.3.0
aws kcl version: 2.7.0
aws sdk version: 2.6.0 and above

getting this error with any aws sdk version from 2.6.0 and above

```
2025-03-19 00:03:56,040 [main] INFO s.a.k.m.c.KinesisClientLibConfigurator [NONE] - Processing (key=AWSCredentialsProvider, value=KclStsAssumeRoleCredentialsProvider|arn:aws:iam::xxxxxxxxxxxx:role/some-role-name|some-session-name)
2025-03-19 00:03:56,040 [main] INFO s.a.k.m.c.AwsCredentialsProviderPropertyValueDecoder [NONE] - Attempting to construct class software.amazon.kinesis.multilang.auth.KclStsAssumeRoleCredentialsProvider
2025-03-19 00:03:56,059 [main] WARN s.a.k.m.c.AwsCredentialsProviderPropertyValueDecoder [NONE] - Unable to construct any provider with name KclStsAssumeRoleCredentialsProvider|arn:aws:iam::xxxxxxxxxxxx:role/some-role-name|some-session-name
2025-03-19 00:03:56,060 [main] WARN s.a.k.m.c.AwsCredentialsProviderPropertyValueDecoder [NONE] - Please verify that all AwsCredentialsProvider properties are passed correctly
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at software.amazon.kinesis.multilang.config.KinesisClientLibConfigurator.lambda$getConfiguration$0(KinesisClientLibConfigurator.java:67)
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with the listed Node KCL, AWS KCL, and AWS SDK versions, then inspect KinesisClientLibConfigurator.java and AwsCredentialsProviderPropertyValueDecoder around the provider construction error. Done means KclStsAssumeRoleCredentialsProvider can be constructed with the shown role and session arguments without the warning or RuntimeException.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript, node.js
Domain
backend, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.