I have an AWS account. I created a repository in us-east-1 region. When I try to access it from my Mac's terminal I get an error fatal: repository 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/demo/' not found
. I was able to access this repository using SourceTree GIT client.
I create another repository in California region and I was able to access that repository from the terminal itself.
Why my Mac's terminal can't find repositories in a particular AWS region?
I followed the link that both VonC and Uzair mentioned and I was able to get to the CLI git command to work after just entering:
git config --global credential.UseHttpPath true
Thanks VonC. PS: Make sure you have a current version of git installed. CodeCommit supports Git versions 1.7.9 and later.