How to use MFA with AWS CLI?

前端 未结 13 1187
太阳男子
太阳男子 2020-12-05 00:05

How do I type in the MFA code when using the AWS CLI? I have checked the documentation page of IAM http://docs.aws.amazon.com/cli/latest/reference/iam/index.html.

I

相关标签:
13条回答
  • 2020-12-05 00:53

    Call aws sts get-session-token --serial-number <serial> --token-code <code> documented here. This will give you a temporary security token. Documentation on using the temporary security token can be found here.

    0 讨论(0)
提交回复
热议问题