AWS Codecommit - fatal: unable to access : The requested URL returned error: 403

For windows,

git config --global credential.helper '!aws codecommit credential-helper $@

git config --global credential.UseHttpPath true

  • First, generate HTTPS Git Credentials in the AWS Management Console and navigate to the IAM service.

  • Click Users from the left sidebar and select your IAM user.

  • Click on the Security credentials tab and scroll down to the section labeled HTTPS Git credentials for AWS CodeCommit.

  • Click on Generate credentials. Save the username and password provided.

Now once you clone on your command line, you will be asked for username and password. Provide these!