git clone https://[aws git repository]
Cloning into '[aws git repository]'...
fatal: repository '[aws git repository]' not found
git clone https://[aws git repository]
git clone https://username:password@git-codecommit.us-east-1.amazonaws.com/v1../repos../..
위에서 username과 password는 codecommit 전용 username과 password를 사용해야했다. 기존의 일반적인 계정과 비밀번호가 아니였다!! 반드시 codecommit 전용 계정과 비밀번호를 사용할 것 !
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 pull/clone with username and password in AWS Code Commit