Connection setting

1 - Create Access Key at the IAM console

2 - Download key and use the content on credential file in <user_folder>\.aws\


3 - Update file <user_folder>\.aws\config

region = us-west-2
output = json
source_profile = rribeiro
mfa_serial = arn:aws:iam::721933253214:mfa/rribeiro

Finally, to test the connection, run:

$ aws ec2 describe-instances

If MFA is required, the following command can be used to authenticate:

$ aws sts get-session-token --serial-number arn:aws:iam::721933253214:mfa/rribeiro --token-code <TOKEN>