簡體   English   中英

git 克隆到 AWS Codecommit 存儲庫返回 403

[英]git clone to AWS Codecommit repo returns 403

我正在嘗試使用 HTTP-GRC 方法克隆 AWS Codecommit Repo 中托管的源代碼。

我已遵循此設置指南: https://docs.aws.amazon.com/codecommit/latest/userguide/temporary-access.html?icmpid=docs_acc_console_connect#tc-role

git clone codecommit::us-west-2://my-code-repo 
returns:
Cloning into 'common-ops-cdk'...
fatal: unable to access 'https://git-codecommit.us-west-2.amazonaws.com/v1/repos/my-code-repo/': The requested URL returned error: 403

以下是一些有助於理解問題所在的信息:

$ git config --list
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=C:/Users/myusername/AppData/Local/Programs/Git/mingw64/ssl/certs/ca-bundle.crt
core.autocrlf=true
core.fscache=true
core.symlinks=false
pull.rebase=false
credential.helper=manager-core
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=master
credential.helper=!aws codecommit credential-helper $@
credentials.helper=UseHttpPath=true

任何見解都會有所幫助。 謝謝!

You need to create an IAM user with access to CodeCommit, then go to Security Credentials for that user and under the HTTPS Git credentials for AWS CodeCommit section select the Generate Credentials button.

使用這些對 AWS git 存儲庫進行身份驗證

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM