title: running git clone against AWS CodeCommits gets me a 403 error
body: <p>My local laptop is a Mac.</p>
  <ol>
  <li>The ssh key is configured properly. This is the content of ~/.ssh/config</li>
  </ol>
  <pre><code>Host barthea
  Hostname git-codecommit.us-east-1.amazonaws.com
  User AVVVVVVVVVVVVVVVVVQ
  IdentityFile ~/.ssh/aws-aws.pem
  </code></pre>
  <p>Running ssh barthea gets me</p>
  <pre><code>You have successfully authenticated over SSH. You can use Git to interact with AWS CodeCommit. Interactive shells are not supported.Connection to git-codecommit.us-east-1.amazonaws.com closed by remote host.
  </code></pre>
  <ol start="2">
  <li><p>I created an IAM user bruce666 complete with password and access keys, made this user part of the &quot;team&quot; group.Then I created a policy that includes &quot;AWSCodeCommitPowerUsers&quot; and assigned this policy to &quot;team&quot;.  And finally assigned bruce666 to &quot;team&quot;. At this point, bruce666 can access any repo in CodeCommit through the management console.</p>
  </li>
  <li><p>I ran <strong>aws config --profile bruce666</strong>, fed in his access and secret key, his region and specified the format at json. At this point, I was able to create the rekha repo in CodeCommmit by running <strong>aws codecommit get-repository --repository-name rekha --profile bruce666</strong></p>
  </li>
  <li><p>I can create a couple of dummy files, run <strong>git init</strong>, <strong>git add .</strong> , <strong>git commit -m &quot;1&quot;</strong>, <strong>git add origin <a href="https://git-gitcode.amzonaws.com/repos/v1/rekha" rel="noreferrer">https://git-gitcode.amzonaws.com/repos/v1/rekha</a></strong> , <strong>git push -u origin master</strong> And that operation will be successful.</p>
  </li>
  <li><p>However, when I run <strong>git clone ssh://git-gitcode.amazonaws.com/repos/v1/rekha</strong> , I get &quot;fatal: unable to access 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/barthia/': The requested URL returned error: 403&quot; What gives?</p>
  </li>
  </ol>