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
asked 2 years ago1466 views
2 Answers
0
Accepted Answer

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
answered 2 years ago
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

EXPERT
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions