AWS SSO를 사용한 CodeCommiit 활용
3568 단어 AWS
개시하다
필기로 남기다.
참고 자료
https://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-unixes.html
https://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/temporary-access.html
전제 조건
SSO 로그인에 사용되는 IAM 스크롤 막대는 CodeCommiit에 대한 작동 권한을 가집니다.
AWS CLI 및 git 명령 설치
절차.
인증 정보 지원 설정
Giit 인증 정보 지원 AWS 인증 정보를 사용하도록 설정
git config --global credential.helper '!aws codecommit credential-helper $@'
git config --global credential.UseHttpPath true
액세스 키, 기밀 액세스 키 및 토큰 설정SSO 화면에서 "Commandline or Programtic access"클릭

Option 1을 Terminal에 붙여넣기

시험해 보다
$ git clone https://git-codecommit.us-west-2.amazonaws.com/v1/repos/my-repo
Cloning into 'my-repo'...
$
완성덤
Mac의 경우 "fatal:unable to access"https://git-codecommit.us-west-2.amazonaws.com/v1/repos/my-repo/':The requested URL returned error:403"오류가 발생할 수 있습니다.
CodeCommiit에서 발행한 인증 정보는 15분 후에 유효하지 않지만git 명령에 사용된 keychain 유틸리티가 유효하지 않은 인증 정보를 사용하여 액세스를 시도하여 발생한 것입니다.
AWS 매뉴얼에는 해당되는 방법이 기재되어 있습니다.
대책 1 git 명령은 Keychain 유틸리티를 사용하지 마십시오.
1 Keychain 유틸리티를 열고 CodeCommiit의 인증 정보를 검색합니다.

2 객체에 대한 인증 정보를 두 번 클릭합니다.
3git-credential osxychain 삭제

4git 명령을 실행하면 키체인을 사용할지 여부 대화상자가 나타납니다. 데니를 누르십시오

5git 명령 사용 가능
상술한 말은 매번 대화상자에서 데니를 클릭해야 한다
대책2 osxychain을 사용하지 않거나 사용 대상을 축소
sudo emacs /Library/Developer/CommandLineTools/usr/share/git-core/gitconfig
사용하지 마세요.다음 텍스트 줄에 주석을 달습니다.# helper = osxkeychain
대상을 축소하다.이 예는github이다.com에 제한되어 있습니다.[credential "https://github.com"]
helper = osxkeychain
참고 자료https://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-unixes.html
https://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/troubleshooting-ch.html
Reference
이 문제에 관하여(AWS SSO를 사용한 CodeCommiit 활용), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/atsumjp/items/1fbd6aae3c8c00d62610텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)