Generates mfa
profile to existing AWS session. Requests a session_token
to enable authentication on API calls that require MFA.
- Existing
aws
session (runaws configure
first) - Exisging MFA device linked to the account
$ mfa_aws
Please enter your AWS MFA token: XXXXXX
==> aws-cli authenticated with MFA device.
==> Append '--profile mfa' to API calls requiring MFA.
==> Expiry: 2019-12-11T01:47:57Z