Credentials behaviour change vs SDK v2 - config source_profile & mfa_serial #4777
Unanswered
rphippswiley
asked this question in
Q&A
Replies: 1 comment
-
Updated description to be clearer / new info |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With
~/.aws/config
:My assume role script:
Using JS SDK v2 lib, it automatically picks up the relevant profile tokens in
~/.aws/credentials
. ✅Using JS SDK v3 lib, it will ask for an MFA ❌
If I remove
source_profile
it correctly reads the tokens from~/.aws/credentials
!versions (if it matters much)
SDK v2 : [email protected]
SDK v3:
"@aws-sdk/client-ssm": "^3.329.0",
"@aws-sdk/node-http-handler": "^3.329.0",
Basic usage:
Env var :
AWS_PROFILE=devel
Beta Was this translation helpful? Give feedback.
All reactions