Cannot get credentials using credential_process in config file #3156
Labels
bug
This issue is a bug.
closing-soon
This issue will automatically close in 4 days unless further comments are made.
response-requested
Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
Cannot create AWS client with credentials from credential_process that is defined in ~/.aws/config file. Error returned is:
config file has profile like:
Environment variable AWS_SDK_LOAD_CONFIG is set to 1 (validated from node.js code).
Is the issue in the browser/Node.js?
Node.js
If on Node.js, are you running this on AWS Lambda?
No
Details of the browser/Node.js version
v12.16.1
SDK version number
v2.640.0
To Reproduce (observed behavior)
From terminal:
$ export AWS_SDK_LOAD_CONFIG=1
$ node index.js
Config file:
A file exists at ~/.aws/credentials but has no profile specified for 'dev'.
index.js:
Expected behavior
Expect AWS SDK to fetch credentials from the credential_process specified in the .aws/config file. Support for this path was merged in PR #2559
Additional context
Originally trying to use AWS CDK with credential_process and landed on this issue: aws/aws-cdk#3008 Saw the PR in aws-sdk-js that merged in credential_process support and wanted to test out a basic nodejs app attempting to use credential_process first.
The text was updated successfully, but these errors were encountered: