My local laptop is a Mac.
The ssh key is configured properly. This is the content of ~/.ssh/config
Host barthea Hostname git-codecommit.us-east
In my case, I had a permission issue.
You need to need to attach the AWSCodeCommitFullAccess policy to your IAM user to give you access to CodeCommit.