Stop 04 · IAM & Account SecurityTopics · 6/9

Enabling MFA on AWS Accounts

Part of the AWS Roadmap

In short

Passwords leak through phishing, reuse and malware every day. MFA means a stolen password alone is not enough, which is why AWS now requires it for root users and expects it for every human who signs in.

Multi-factor authentication adds a second check, such as an authenticator app or a passkey or security key, on top of a password. AWS requires MFA for root users in many account types and strongly recommends it for every human identity.

The jaadu opens a front door with a regular key and then presses a small fingerprint pad beside it before the door swings open.

Think of it like this

UPI PIN after the app lock

Unlocking your phone is one check. Before money moves, your UPI app still asks for a PIN that only you know. MFA adds that second check to AWS sign-in: password plus something you hold, like a passkey, security key or authenticator code.

Watch it happen

Signing in with MFA

You
AWS sign-in
Your MFA device
Console

Email + password

1/5You enter your password. On its own this is not enough.

The big ideas

What you need to know

Passkeys and security keys

Phishing-resistant FIDO devices like YubiKeys or passkeys in your phone's password manager. The strongest option.

Authenticator apps

Virtual MFA apps generate time-based codes. Good, and free.

Register more than one

Root and IAM users can have up to eight MFA devices. Add a backup so a lost phone doesn't lock you out.

Require it in policies

The aws:MultiFactorAuthPresent condition can block sensitive actions unless the session used MFA.

See it in code

Walk through the code

json
1{2  "Version": "2012-10-17",3  "Statement": [4    {5      "Sid": "DenyTerminateWithoutMFA",6      "Effect": "Deny",7      "Action": ["ec2:TerminateInstances", "ec2:StopInstances"],8      "Resource": "*",9      "Condition": {10        "BoolIfExists": { "aws:MultiFactorAuthPresent": "false" }11      }12    }13  ]14}

1/2A Deny on two risky EC2 actions across all instances.

A guardrail policy: nobody can stop or terminate EC2 instances unless their session was authenticated with MFA.

Save yourself the pain

Common mistakes

Oops

Registering only one MFA device and losing the phone.

Do this instead

Register a second device, like a security key kept at home, and store root recovery details safely.

Oops

Turning on MFA for root and forgetting the daily admin identity.

Do this instead

Enable MFA for every human identity. In IAM Identity Center, require MFA in the authentication settings.

Your mission

Lock it twice

~20 min

Quick check

Which MFA type protects best against phishing sites that copy the AWS sign-in page?

Go deeper

  1. 1Enable MFA for your root user and your admin identity using an authenticator app or passkey.
  2. 2Store recovery information safely in case you lose your phone.
  3. 3Write an IAM policy condition that denies sensitive actions when aws:MultiFactorAuthPresent is false.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge