How to use MFA with AWS CLI?

前端 未结 13 1289
太阳男子
太阳男子 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 --token-code documented here. This will give you a temporary security token. Documentation on using the temporary security token can be found here.

提交回复
热议问题