Activate MFA报错:MFADevice entity at the same path and name already exists

MFA即:Multi-factor authentication (MFA)

今天在为自己账号Activate MFA时报错,如下图所示:

Entity already exists
This entity already exists. Learn more
MFADevice entity at the same path and name already exists. Before you can add a new virtual 
MFA device, ask your administrator to delete the existing device using the CLI or API.

原因,应该是之前创建时,没有完成~,但实际已经有记录了,需要联系管理员通过cli的方式进行处理,

解决方法如下>>>>>>>>:

1、先列出virtual-mfa-devices,通过aws cli的方式:aws iam list-virtual-mfa-devices

2、然后再删除指定的 SerialNumber 即可,如上图,这里我们删除user02的SerialNumber 

aws iam delete-virtual-mfa-device --serial-number "arn:aws:iam::25xxxxxxxxxx:mfa/user02"

3、这样再到页面上就可以重新激活MFA功能了(可以通过okta verify软件进行扫描,需要输入2次的6位验证码,就可以完成MFA绑定)

尊重别人的劳动成果 转载请务必注明出处:https://www.cnblogs.com/5201351/p/15314525.html

作者:一名卑微的IT民工

出处:https://www.cnblogs.com/5201351

本博客所有文章仅用于学习、研究和交流目的,欢迎非商业性质转载。

博主的文章没有高度、深度和广度,只是凑字数。由于博主的水平不高,不足和错误之处在所难免,希望大家能够批评指出。

博主是利用读书、参考、引用、抄袭、复制和粘贴等多种方式打造成自己的文章,请原谅博主成为一个卑微的IT民工!

原文地址:https://www.cnblogs.com/5201351/p/15314525.html