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

awscli: CodeCommit access using credential-helper #58

Open
michaelwittig opened this issue Feb 15, 2019 · 1 comment
Open

awscli: CodeCommit access using credential-helper #58

michaelwittig opened this issue Feb 15, 2019 · 1 comment

Comments

@michaelwittig
Copy link

I try to get CodeCommit access (using git credential helper)working with the awscli package:

In my git repos, I define this in .git/config to get access to CodeCommit.

[credential]
        helper =
        helper = !aws --profile xyz codecommit credential-helper $@
        UseHttpPath = true

In my case, profile xyz is configured to use MFA.

When I git pull, I get:

$ git pull
/usr/local/lib/python3.7/getpass.py:91: GetPassWarning: Can not control echo on the terminal.
  passwd = fallback_getpass(prompt, stream)
Warning: Password input may be echoed.
Enter MFA code for arn:aws:iam::XXX:mfa/michael: 

Username for 'https://git-codecommit.us-west-2.amazonaws.com/v1/repos/YYY': 

Any ideas how I can make this work?

@tjamet
Copy link
Contributor

tjamet commented Feb 8, 2022

I understand, here, you are trying to use the aws cli in container run by whalebrew as a git credential helper, correct?

I tend to see the problem around a conflict in the way git, docker and aws handle TTYs. Not sure how to fix it properly at the moment though

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

2 participants