'Is there a node.js default credential provider chain?
I'm writing a node.js app that uses the AWS SDK.
The java documentation describes a very convenient concept called the default credential provider chain. I could not find the same concept in the Node.js API documentation.
I'm hoping that node/javascript has this as an undocumented feature. Does the javascript API provide a default credential provider chain, and if so, how do I use it?
Solution 1:[1]
You can use CredentialProviderChain:
const awsManageStore = new AWS.SSM(AWS.CredentialProviderChain.defaultProviders);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Christian |
