Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS CLI MFA Authentication is not allowing cursor to move #1132

Open
sarbaniAi opened this issue Sep 1, 2021 · 0 comments
Open

AWS CLI MFA Authentication is not allowing cursor to move #1132

sarbaniAi opened this issue Sep 1, 2021 · 0 comments

Comments

@sarbaniAi
Copy link

Summary

I am having a strange issue -> I created an ec2 - linux instance with free tier options, then changed the was cli config file and credential file with my ADMIN role and MFA details. When running aws cli command with the --profile option it is asking for MFA key but I can not type anything on the prompt..

Description

linux

$view ~/.aws/credentials ->
[my-profile]
aws_access_key_id=YOUR_ACCESS_KEY
aws_secret_access_key=YOUR_SECRET_KEY

$view ~/.aws/congog ->
[profile my-profile]
region=
[profile my-profile-roletype]
region=
role_arn=arn:aws:iam::xxxxx:role/role_name
source_profile=my-profile
mfa_serial=arn:aws:iam::XXXXXX:mfa/aws_username

When running ->
$ aws s3 ls --profile my-profile-roletype
$ Enter MFA code for arn:aws:iam::XXXXXX:mfa/aws_username:

Expected Behavior

Enter MFA code for arn:aws:iam::XXXXXX:mfa/aws_username: XXXX

Observed Behavior

Enter MFA code for arn:aws:iam::XXXXXX:mfa/aws_username: <curson is not moving here, so can not type anything>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant