yum install epel-release yum install python-pip pip install awscli
cat ~/.aws/config
[default]
output = json
region = ap-northeast-1
[profile CodeCommitProfile]
region = us-east-1
output = json
cat ~/.aws/credentials
[default]
aws_access_key_id = AKI〜
aws_secret_access_key = 〜
[CodeCommitProfile]
aws_access_key_id = AKI〜
aws_secret_access_key = 〜
git config --global credential.helper '!aws --profile CodeCommitProfile codecommit credential-helper $@' git config --global credential.UseHttpPath true
git config --global http.proxy http://認証ID:認証PW@プロキシサーバのURL:ポート番号 git config --global https.proxy http://認証ID:認証PW@プロキシサーバのURL:ポート番号
sudo curl -o /usr/bin/jq http://stedolan.github.io/jq/download/linux64/jq && sudo chmod +x /usr/bin/jq
chmod 755 /path/to/sync_codecommit.sh crontab -e