Menu
AWS Identity and Access Management
User Guide

Enabling MFA Devices

The following overview procedure describes how to set up and use MFA and provides links to related information.

  1. Get an MFA token device or an SMS-compatible mobile device such as one of the following. You can enable only one MFA device per AWS account root user or IAM user, and the device can only be used by the specified user.

    • A hardware-based token device, such as one of the AWS supported hardware token devices discussed on the Multi-Factor Authentication page.

    • A virtual token device, which is a software application that is compliant with RFC 6238, a standards-based TOTP (time-based one-time password) algorithm. You can install the application on a mobile device, such as a tablet or smartphone. For a list of a few supported apps that you can use as virtual MFA devices, see the Virtual MFA Applications section of the Multi-Factor Authentication page.

    • A mobile phone that can receive standard SMS text messages.

      Note

      If you choose to use SMS-based MFA, text messaging charges from your mobile device's carrier may apply.

      SMS-based MFA are only available for IAM users and cannot be used for the root user.

  2. Enable the MFA device. Enabling a device has two steps. First, you create an MFA device entity in IAM. Then you associate the MFA device entity with the IAM user. You can perform these tasks in the AWS Management Console, the AWS CLI, Tools for Windows PowerShell or the IAM API.

    For information about enabling each type of MFA device, see the following topics:

  3. Use the MFA device when you log in to or access AWS resources. Note the following:

    • To access an AWS website, you need an MFA code from the device in addition to the usual user name and password. If AWS determines that the IAM user you sign in as is MFA-enabled with SMS, then it automatically sends the MFA code to the configured phone number.

    • To access MFA-protected API operations, you need an MFA code, the identifier for the MFA device (the device serial number of a physical device or the ARN of a virtual or SMS device defined in AWS), and the usual access key ID and secret access key.

      Note

      During the public preview of SMS MFA, you can authenticate with your SMS device only in the AWS Management Console. You cannot pass the MFA information for an SMS MFA device to AWS STS APIs to request temporary credentials.

    For more information, see Using MFA Devices With Your IAM Sign-in Page