You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that aws-sdk-v3 does not consider credentials_process:
import { S3 } from '@aws-sdk/client-s3'
new S3({}).listBuckets({}).then(console.log)
$ AWS_REGION=eu-west-1 AWS_SDK_LOAD_CONFIG=1 AWS_PROFILE=myprofile ts-node s3-ls-v3.ts
[...]
Error: Profile myprofile could not be found or parsed in shared credentials file.
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.
Describe the bug
I have a
~/.aws/config
with a profile that defines acredentials_process
:This works with the aws-cli:
And with aws-sdk-v2 (using
AWS_SDK_LOAD_CONFIG=1
):It seems that aws-sdk-v3 does not consider
credentials_process
:This seems to be caused by
credential-provider-node
, which is not consideringfromProcess
if a profile is given in the environment:https://github.com/aws/aws-sdk-js-v3/blob/master/packages/credential-provider-node/src/index.ts#L45-L48
SDK version number
1.0.0-rc.9
Is the issue in the browser/Node.js/ReactNative?
Node
Details of the browser/Node.js/ReactNative version
v15.4.0
To Reproduce (observed behavior)
See description above.
Expected behavior
Get credentials from
credentials_process
in profile.The text was updated successfully, but these errors were encountered: