How can I troubleshoot the "entity already exists" error when an IAM user tries to create a new MFA device?
2 minute read
I tried to create a new multi-factor authentication (MFA) device for an AWS Identity and Access Management (IAM) user. I received an error similar to the following:
"MFA Device entity at the same path and name already exists."
The IAM user doesn't have any MFA devices. How can I resolve this issue?
This error occurs because an MFA device was created but wasn't enabled for use with any IAM users.
First, deactivate the MFA device. Then, delete it using the AWS Command Line Interface (AWS CLI). Finally, recreate the MFA device.