我设置了对 CodeCommit 的 SSH 访问并测试了连接:
You have successfully authenticated over SSH. You can use Git to interact with AWS CodeCommit. Interactive shells are not supported.Connection to git-codecommit.us-east-1.amazonaws.com closed by remote host.
当我尝试克隆或推送时,我看到此错误:
Access denied: User: arn:aws:iam::##########:user/me@me.com is not authorized to perform: codecommit:GitPull on resource: arn:aws:codecommit:us-east-1:##########:my-repo
即使在向我的用户添加策略以访问此 repo 上的所有操作后,我也无法克隆或推送。
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"codecommit:*"
],
"Resource": [
"arn:aws:codecommit:us-east-1:##########:my-repo"
]
}
]
}
是什么赋予了?其他人有这个问题吗?