Clone a codecommit repo to local machine

0

When I am trying to clone a a codecommit repo to my local machine using HTTPS method I am getting the below error message.

"fatal: unable to access 'https:/...repo url /': The requested URL returned error: 403".

I have followed all the steps mentioned in the aws document and have configured the IAM role & the git credentials as well.

As an alternative I have tried using the SSH method as well. I am facing permission denied & make sure the repo exists error message irrespective of following the document.

I don't want to try using AWS CLI or using the access key ID / secret access key due to compliance restrictions.

Can someone please help me regarding this.

demandé il y a un an782 vues
1 réponse
1

Hi, given what you describe, you should follow "Use Git credentials and HTTPS with CodeCommit (recommended)" in https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_ssh-keys.html

It creates another pair (userid, password) but I used it successfully myself in situation with constraints similar to yours.

profile pictureAWS
EXPERT
répondu il y a un an
profile pictureAWS
EXPERT
kentrad
vérifié il y a un an
  • Thank you so much for your answer. If MFARequired policy is enabled for the IAM user, will this approach work?

  • Hi, thank you so much for your suggestion. I have tried the approach you mentioned, but still facing the same problem. Maybe due to MFARequired policy enabled for the IAM user, this method is not working.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions