How to Assign a Virtual MFA Device in AWS IAM
AWS strongly mandates MFA on root accounts and privileged IAM users. Configure offline TOTP in three steps.
AWS Console → Security credentials (or IAM → Users) → Multi-factor authentication (MFA)
Step-by-step AWS 2FA setup
- 1
Open AWS Security credentials
Click your account name in the top-right of the AWS Console and select Security credentials (or open IAM → Users for an IAM user).
- 2
Assign an Authenticator app MFA device
Click Assign MFA device, enter a clear device name, choose Authenticator app, and expand Show QR code.
- 3
Enter two consecutive TOTP codes
Scan the QR code in Authenticator, enter the current 6-digit code in MFA code 1, wait 30 seconds for the next code in MFA code 2, and click Add MFA.
Troubleshooting & tips
- AWS requires TWO consecutive 30-second codes (MFA code 1 and MFA code 2)—do not enter the same code twice.
AWS 2FA FAQ
Why does AWS ask for two MFA codes during setup?
Two consecutive codes verify that your device clock and TOTP counter step forward accurately.
Protect your AWS account offline
AES-256-GCM local vault on iOS, Android, Apple Watch, and zero-network Chrome & Edge extensions.