Deactivate an MFA Device by an AWS User Name
This automation deactivates a Multi-Factor Authentication (MFA) device of an AWS User. Multi-Factor Authentication (MFA) is a key security measure for validating the identity of AWS users by adding another layer of security on top of username and password. If one of your AWS users loses their MFA device, it's important to deactivate it right away.
  1. List MFA devices for the user.
  2. If user has MFA devices, find and deactivate the specified MFA device.