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.

質問済み 1年前779ビュー
1回答
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
エキスパート
回答済み 1年前
profile pictureAWS
エキスパート
kentrad
レビュー済み 1年前
  • 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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ