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
gefragt vor 2 Jahren1484 Aufrufe
2 Antworten
0
Akzeptierte Antwort

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
beantwortet vor 2 Jahren
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

EXPERTE
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen