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
preguntada hace 2 años1484 visualizaciones
2 Respuestas
0
Respuesta aceptada

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
respondido hace 2 años
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

EXPERTO
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas