running git clone against AWS CodeCommits gets me a 403 error

后端 未结 13 775
没有蜡笔的小新
没有蜡笔的小新 2021-01-31 14:56

My local laptop is a Mac.

  1. The ssh key is configured properly. This is the content of ~/.ssh/config

    Host barthea Hostname git-codecommit.us-east

13条回答
  •  心在旅途
    2021-01-31 15:30

    fatal: unable to access 'https://git-codecommit.yourregion.amazonaws.com/v1/yourrepositoryname/': The requested URL returned error: 403

    It occurs due to below regions

    1. Make sure your user has codecommitfullaccess policy attached.
    2. make sure your default region in local aws cli configuration and region in which repository created are same. If not reset the default region in aws cli command as below

    aws configure

    1. make sure if repository present there.

提交回复
热议问题