running git clone against AWS CodeCommits gets me a 403 error

后端 未结 13 740
没有蜡笔的小新
没有蜡笔的小新 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:28

    After running below commands, I had to add the below mentioned policy to my IAM user to solve this problem. refrence

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

    Policy:

    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "codecommit:*"
                ],
                "Resource": "*"
            }
        ]
    }
    

提交回复
热议问题