Not able to clone a codecommit repository

0

I followed these steps to get access to codecommit but i'm not able to clone repositories.

  1. Install latest pip and git-remote-codecommit
  2. Create and IAM user with policy AWSCodeCommitPowerUser and attach SSH and AWS Git credentials.
  3. Configure the IAM user locally.

I get the following error when try to clone through ssh:

Cloning into 'nfs-utils'...
Enter passphrase for key '/home/risbhat/.ssh/id_rsa': 
no such identity: /home/risbhat/.ssh/id_ed25519: No such file or directory
Permission denied (publickey).
fatal: Could not read from remote repository.

I can see the repository exists and I have added the ssh keys/Git credentials to my IAM user. Am i missing some step?

AWS
已提问 2 年前1485 查看次数
2 回答
0
已接受的回答

Yes i was using this command: git clone codecommit::us-west-2://default@nfs-utils

I realized that i have access to these repos only through a isengard account created by my team and not through personal account. So something like this worked for me: git clone codecommit::us-west-2://karoo-source@nfs-utils (karoo-source is the profile created through the team's isengard account)

AWS
已回答 2 年前
0

What does your clone command look like? Given you've installed git-remote-codecommit, are you using something like this?:

git clone codecommit::region://iam-principal@repo-name

专家
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则