[AWS error] fatal: repository '[aws git repository]' not found

웰시코딩·2020년 12월 3일
0

Error message

git clone https://[aws git repository]
Cloning into '[aws git repository]'...
fatal: repository '[aws git repository]' not found

At that time my code

git clone https://[aws git repository]

Solution

git clone https://username:password@git-codecommit.us-east-1.amazonaws.com/v1../repos../..

위에서 username과 password는 codecommit 전용 username과 password를 사용해야했다. 기존의 일반적인 계정과 비밀번호가 아니였다!! 반드시 codecommit 전용 계정과 비밀번호를 사용할 것 !

해결법 과정

  1. 2개의 AWS 계정을 사용하면서 default되어있던 계정으로 commit을 요청하여 생긴 문제였다. 그래서 원하는 계정으로 clone 요청을 아래와 같이 하였다.

    git clone https://username:password@git-codecommit.us-east-1.amazonaws.com/v1../repos../..

    그래도 error가 발생하였고, error message는 아래와 같다.

    Cloning into '[aws git repository]'...
    fatal: unable to access '[aws git repository]': The requested URL returned error: 403

    그래서 googling을 하니 아래와 같은 정책 변경이야기가 나왔다.

    Git 자격 증명을 사용하여 HTTPS 사용자 설정

    하지만 이 해결법은 틀렸다.

Reference

Git pull/clone with username and password in AWS Code Commit

Git-Repository not found 에러(여러 계정 동시 사용 시)

profile
코딩하자멍

0개의 댓글

관련 채용 정보