title: Clone AWS CodeCommit git repository using GitPython with https credentials
body: <p>I'm looking everywhere since for the more accurate way to clone an AWS CodeCommit git repository through python using https protocol.</p>
  
  <p>In fact for those who don't know aws suggest using the codecommit credential helper to generate user and password, like this :</p>
  
  <pre><code>git config --global credential.helper '!aws codecommit credential-helper $@'
  git config --global credential.UseHttpPath true
  </code></pre>
  
  <p>So git will invoke the codecommit helper each time he needs credentials, without prompt.</p>
  
  <p>Thus, I look at GitPython library code, but didn't find anywhere how to provide credentials to git.</p>
  
  <p>In my case, I'm using AWS Lambda to write a python function which will clone my CodeCommit Git repository among other stuff.</p>
  
  <p>I would like to avoid launching a container like codebuild for example in my lambda function to execute git commands, or launching a shell in <code>subprocess</code></p>
  
  <p>Can one here give me avise for a better approach of the problematic? </p>