
當我運行以下命令時,我得到:
git config --global --edit
顯示包含設定指南中的行的編輯文件
aws configure
顯示了按鍵的尾部,正如我所期望的那樣。
然而,我收到以下錯誤:
C:\Path\to\repo>git push https://git-codecommit.us-east-1.amazonaws.com/v1/repos/myRepo --all
fatal: unable to access 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/myRepo/': The requested URL returned error: 403
C:\Path\to\repo>git clone https://git-codecommit.us-east-1.amazonaws.com/v1/repos/myRepo myRepo
Cloning into 'myRepo'...
fatal: unable to access 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/myRepo/': The requested URL returned error: 403
編輯:我應該補充一點,我已經建立了一個使用者並將其指派給一個具有完全存取權限(?)AWSCodeCommit 策略(AWSCodeCommitPowerUse 和 AWSCodeCommitFullAccess)的群組。我為此使用者建立了一個存取金鑰,並且該金鑰也已輸入到憑證幫助程式中。
我缺什麼?