-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Credential Provider Chain Resolution #1366
Comments
Related to #1276? |
@RLovelett The long explanation is that when you pass configuration into a service client's constructor, behind the scenes the global config is copied, then service-bound params on the global config are merged on top of that, followed by the configuration passed to the constructor. This is done so that users don't have to specify every configuration option for every service client. However, during this merge, if a field in the configuration is set to Setting the field to We should document that |
I like the Update@chrisradek I think something like this needs to be made in the TypeScript definition. Thoughts?
Update 2I actually think this is necessary because of |
@RLovelett |
Closing this issue since the feature was implemented. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
This is a question about expected behavior.
Let's say I have the following code (Node 7.5.0 because of async/await).
And
~/.aws/credentials
file:I would expect that the resulting
S3
instance would pull from the explicit provider chain. Such that if I ran the code it would pull from thegovcloud
section and work fine. However, it pulls fromdefault
and thus prevents my call from succeeding. Just to be sure I checked by removing thedefault
group. Then the call actually pulls fromgovcloud
.This behavior, to me, seems counter-intuitive. Can someone help my intuition?
Update
This second example code does work as I expect but notice now I have explicitly called
resolve
and I am awaiting the credentials resolving before creating myS3
object. This does feel like the way the documentation indicates this should work.The text was updated successfully, but these errors were encountered: