jmaver-plume / kafkajs-msk-iam-authentication-mechanism

MIT License
21 stars 26 forks source link

Support for providing an alternate credential profile/iam role for a client #27

Closed vikshab closed 1 year ago

vikshab commented 1 year ago

It would be great if we were able to provide an alternate IAM role or creds profile for a KafkaJS as it supported currently in Java version https://github.com/aws/aws-msk-iam-auth#specifying-an-alternate-credential-profile-for-a-client

jmaver-plume commented 1 year ago

Will check this weekend.

awhittier-cribl commented 1 year ago

I would also be interested in seeing an example of how to configure/use the library to assume a role and use the assumed role's credentials for authorization. Thanks!

jmaver-plume commented 1 year ago

You can

For more information https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/modules/_aws_sdk_credential_providers.html#fromnodeproviderchain

vikshab commented 1 year ago

@jmaver-plume Thank you for a quick response and adding this feature!