-
Notifications
You must be signed in to change notification settings - Fork 603
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
feat(credential-provider-ini): add ignoreCache option #6856
Conversation
credentials: fromTemporaryCredentials({ | ||
// your temporary credentials config | ||
}), | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this preferred?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to have the .ini
file at all in that case (no filesystem operations), credentials obtained from STS directly
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. |
Issue
#3396
Description
Exposes the
ignoreCache
option forfromIni
credential provider.To note, if you run a test script using the
fromIni
credential provider (loading credentials from the~/.aws/credentials
file) separately each time, the Node.js process starts fresh each time, so there's no cached state between runs. But, if you modify the credentials file within the same running process, we can see the caching in effect - the credentials wouldn't update even after waiting for a while.The exposed option
ignoreCache
will allow uncached/refreshed credentials from the credentials file to be used, even if the credentials file is modified within the same running process.Testing
credential-provider-ini
package updated testsAdditional context
Short test script to see this option in action:
Output:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.