* AWS Code Commitを使用する [#y04bbd18]
#setlinebreak(on)

#contents
- ドキュメント
-- codecommit ドキュメント(Linux, OS X)
--- 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/setting-up-ssh-unixes.html
--- https://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-windows.html
-- AWS CLIのインストール
--- http://docs.aws.amazon.com/ja_jp/cli/latest/userguide/installing.html#install-bundle-other-os
-- ブランチ作成
--- http://docs.aws.amazon.com/codecommit/latest/userguide/how-to-create-branch.html

&br;

** AWS console から codecommit のリポジトリを作成 [#sb21a30d]


&br;

** AWS console から IAMユーザの作成とポリシー設定 [#jd931e9a]


&br;

** AWS CLIのインストール(Mac) [#h6056e80]
#html(<div style="padding-left:10px;">)

*** pythonのバージョン確認(Python 2 version 2.6.5+ or Python 3 version 3.3+) [#p5b5451a]
#myterm2(){{
python --version
}}

*** zipダウンロード、解凍、インストール [#n74a923d]
#myterm2(){{
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
}}

*** インストールされたバージョンを確認 [#y61713f1]
#myterm2(){{
aws --version
}}
#html(</div>)

&br;

** AWS CLIでCodeCommitを使う時のアクセスキーなどを設定する(Mac) [#v9e2ed72]
#html(<div style="padding-left:10px;">)

*** CodeCommit用のプロファイルを作成 [#v7cd8546]
#myterm2(){{
aws configure --profile CodeCommitProfile
> AWS Access Key ID [None]: XXXXXXXXXXXX
> AWS Secret Access Key [None]: XXXXXXXXXXX
> Default region name [None]: us-east-1
> Default output format [None]: json
}}
※ ~/.aws/credentials に情報が追加される

#myterm2(){{
git config --global credential.helper '!aws --profile CodeCommitProfile codecommit credential-helper $@'
git config --global credential.UseHttpPath true
}}
※ ~/.gitconfig に情報が追加される
#html(</div>)

#html(</div>)



トップ   差分 バックアップ リロード   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS