Closed14

CodeCommitについて(仮)

chittaichittai

CodeCommitの認証

  • IAMユーザ
  • AWSアカウントのルートユーザー
  • IAMロール
chittaichittai

IAMユーザが作成できないアカウントにCodeCommitのアクセスをしたいときの方法について調査する

chittaichittai

gitのcredential helper を利用する。credential helperについて調べる。

chittaichittai

アカウントA→アカウントBにスイッチロール(CodeCommitへアクセスできるロール)。credential.helperを利用する

chittaichittai
aws codecommit credential-helper help 

の結果

Provide  a  SigV4  compatible user name and password for git smart HTTP
These commands are consumed by git and should not used directly.  Erase
 and  Store  are  no-ops.  Get  is  operation to generate credentials to  authenticate AWS  CodeCommit.  Run  "aws  codecommit  credential-helper

単体で使うものではない。CodeCommitを利用するための認証情報を提供する。

chittaichittai

aws cli 1.x はデフォルトでグローバルエンドポイントが利用される

chittaichittai

結論:PrivateLinkでSTSを利用するときの注意点について記事にまとめる(CodeCommitへのクロスアカウントアクセスをベースにする)

chittaichittai

git-remote-codecommitについて調べる(credential.helperよりもAWSとしての推奨)

このスクラップは2021/03/11にクローズされました