With amazon aws command line interface, I can't successfully login with MFA token
I can login via web interface, MFA has been enable. If I login via web interface, I need provide: Account
, User Name
, Password
, enable MFA token, MFA code
Now I need do it from command line interface, installed awscli tool, following amazon document http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
[default]
aws_access_key_id=AKIAIOSFODNN7EXAMPLE # I think this is Username
aws_secret_access_key=wJalrXUtnFEM # I think this is Password
aws_session_token=example123324 # I think this is MFA code
Not sure how to set AWS Account (or called alias)
and enable MFA token option.
Any ideas?