cloud9_note

cloud9に限らないメモ

View on GitHub

AWS CodeCommit

AWSが提供しているgitリポジトリ。

アクセスキーの登録

aws configure --profile codecommit
  AWS Access Key ID [None]: (アクセスキー)
  AWS Secret Access Key [None]: (シークレットキー)
  Default region name [None]: (リージョン名)
  Default output format [None]: json

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

参考

clone

アクセスキーの登録をした上で実行。

export AWS_REGION=(リージョン名)
export REPOSITORY_NAME=(リポジトリ名)
git clone https://git-codecommit.${AWS_REGION}.amazonaws.com/v1/repos/${REPOSITORY_NAME}

通知

下記の種類がある。