IT/aws

aws codecommit 신규 등록

generator 2018. 5. 13. 16:43

1. codecommit 에 신규 저장소 생성을 선택한다.





2. 저장소 이름 지정


3. 저장소 위치 복사(ssh로 복사)



4. 로컬에서 git 으로 등록 할 내용 생성후 push


$mkdir test

$cd test

$touch aaa

$git init

$git add .

$git commit -m 'first init'

$git remote add  origin ssh://git-codecommit.ap-northeast-2.amazonaws.com/v1/repos/testtest    --https사용시 계정인증 요청을 계속됨

$git push --set-upstream origin master


5. 계정

  IAM - > 유저선택 - > security credentials -> 맨 하단에 HTTPS Git credentials for AWS CodeCommit에서 확인