CmdID

CmdID / aws / aws iam

aws iam create-virtual-mfa-device

Creates a new virtual MFA device for the Amazon Web Services account. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To create a virtual MFA device

The following create-virtual-mfa-device example creates a new virtual MFA device called BobsMFADevice. It creates a file that contains bootstrap information called QRCode.png and places it in the C:/ directory. The bootstrap method used in this example is QRCodePNG.

aws iam create-virtual-mfa-device --virtual-mfa-device-name BobsMFADevice --outfile C:/QRCode.png --bootstrap-method QRCodePNGIdentify
--virtual-mfa-device-nameThe name of the virtual MFA device, which must be unique.
Its output
{
    "VirtualMFADevice": {
        "SerialNumber": "arn:aws:iam::123456789012:mfa/BobsMFADevice"
    }
}

For more information, see Using multi-factor authentication (MFA) in AWS in the AWS IAM User Guide.

Options

3 in the AWS CLI reference
--pathThe path for the virtual MFA device.
--tagsA list of tags that you want to attach to the new IAM virtual MFA device.
--virtual-mfa-device-nameThe name of the virtual MFA device, which must be unique.