Using MFA with AWS CLI

MFA on AWS Cli

Description

Just writing down the steps ive been manually taken for updating my

credentials to use ecr in aws from the cli.

1. Ensure the profile is `[mfa]`

2. Convert the json to the toml keys

1. "SecretAccessKey": aws_secret_access_key

2. "SessionToken": aws_session_token

3. "AccessKeyId": aws_access_key_id

1. ecr above can be replaced with any service

---

updated: 2 October 2021.

to the Index

/ html