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?

2 Respostas
0
Resposta aceita

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 há 2 anos
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

ESPECIALISTA
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas