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
-
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 : aws-sdk@2.1303.0
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