An error occurred (AccessDenied) when calling the GetSessionToken operation: MultiFactorAuthentication failed, must provide both MFA serial number and one time pass code.

From wikieduonline
Jump to navigation Jump to search

An error occurred (AccessDenied) when calling the GetSessionToken operation: MultiFactorAuthentication failed, must provide both MFA serial number and one time pass code


aws sts get-session-token --serial-number arn:aws:iam::0123456789012:mfa/yourTextStrings
Solution, provide --token-code value
aws sts get-session-token --serial-number arn:aws:iam::0123456789012:mfa/yourTextStrings --token-code <token>


See also[edit]

Advertising: