How to enable AWS multi-factor authentication (MFA)

MFA stands for multi-factor authentication. It is a security mechanism used to verify a user’s or system’s identity by requiring them to provide two or more separate authentication factors before granting access to a system, account, or resource. MFA is a broader term that encompasses 2FA (two-factor authentication) but also includes the use of additional authentication factors beyond just two. MFA adds an extra layer of security beyond just a username and password, making it harder for unauthorized individuals to obtain access.

AWS multi-factor authentication is a security feature provided by Amazon Web Services (AWS) to enhance the protection of AWS accounts and resources. Using AWS MFA greatly enhances AWS environment security by lowering the chances of unauthorized entry. If a malicious individual learns a user's password, they still require access to the MFA device to gain access.

Types of MFA devices

AWS supports two different types of MFA devices:

  • Virtual MFA device: These devices enable users to utilize mobile applications such as Google Authenticator or Authy for generating time-based one-time passwords (TOTP).

  • Hardware MFA device: These devices act as physical hardware tokens to generate MFA codes. Devices like YubiKey are good examples of Hardware MFA devices.

Enabling MFA in AWS

To enable MFA for a user, we need to follow the series of steps provided below:

  1. Log in to the AWS Management Console and search for “IAM" in the search bar.

  2. Go to the IAM (Identity Access Management) dashboard and select the “Users” from the left sidebar under the “Access Management” section.

  3. Select the user for whom to enable MFA.

Note: If no users exist, we can create a new user by clicking on the “Create user” button in the top right.

  1. Within the user details page, navigate to the “Security credentials” tab.

  2. Scroll down to the “Multi-Factor Authentication (MFA)” section, and click the “Assign MFA device” button.

  3. Set the “Device name” and select “Authenticator app” from the “MFA device” section.

  4. Next, we must install the “Google Authenticator” app on our mobile device.

  5. Click the Show QR code on the “Set up device” page and scan the QR code using the “Google Authenticator” app.

  6. Finally, enter the first MFA code into “MFA code 1” and wait for the timer to run, and then enter the new code in “MFA code 2” and click the “Add MFA” button.

Type IAM in the search bar
Type IAM in the search bar
1 of 5

Now that we’ve activated MFA for our AWS account, let’s assess our understanding of AWS MFA by taking the following quiz:

1

What role does AWS multi-factor authentication (MFA) serve in the AWS environment, and how does it contribute to bolstering account security?

A)

AWS MFA facilitates remote access to AWS resources without requiring additional authentication.

B)

AWS MFA strengthens account security by requiring users to provide two or more forms of authentication.

C)

AWS MFA automates the deployment of security patches and updates across AWS infrastructure.

D)

AWS MFA enables users to bypass password requirements for accessing sensitive AWS resources.

Question 1 of 30 attempted

Conclusion

Enabling multi-factor authentication (MFA) for an AWS IAM user means that, besides entering a password, the user must provide a one-time MFA code generated by a virtual device like the “Google Authenticator” app, making unauthorized access significantly more challenging. This added layer of security is essential for protecting sensitive AWS resources, as even if an attacker discovers the password, they still require access to the user’s MFA device to gain entry, effectively thwarting malicious activity and enhancing the overall security of the AWS account.

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved