How do I type in the MFA code when using the AWS CLI? I have checked the documentation page of IAM http://docs.aws.amazon.com/cli/latest/reference/iam/index.html.
I
aws-mfa acts as a wrapper around sts and works really well: https://github.com/broamski/aws-mfa
aws-mfa
sts