1. 개요

CodeCommit 시작


2. 과정

2-1. PC에 git 설치

http://gitforwindows.org/

2-2. IAM 계정 권한

  • 공통권한 : AWSCodeCommitFullAccess
  • Git 자격 증명을 사용 시 : IAMSelfManageServiceSpecificCredentials, IAMReadOnlyAccess
  • SSH를 사용하여 연결 시 : IAMUserSSHKeys, IAMReadOnlyAccess

2-3. PC에 AWS CLI 설치

https://docs.aws.amazon.com/ko_kr/cli/latest/userguide/awscli-install-windows.html

2-4. PC에서 aws configure

IAM 계정 연결

2-5. PC에서 git config 실행

다음 커맨드를 실행한다.

git config --global credential.helper "!aws codecommit credential-helper $@"
git config --global credential.UseHttpPath true

그러면 .gitconfig 파일이 생성되고 그 내용은 다음과 같다.

[credential]    
    helper = !aws codecommit credential-helper $@ 
    UseHttpPath = true

2-6. 이클립스에 AWS Toolkit 설치

https://docs.aws.amazon.com/ko_kr/toolkit-for-eclipse/v1/user-guide/setup-install.html


3. 문제 해결

can't connect to uri .. 에러 발생하면 AWSCodeCommitFullAccess 권한을 다시 한번 확인해 본다.