CodeCommit導入手順
CodeCommitを新規プロジェクトで使うことになったので導入手順を備忘録メモ
AWSコンソールからCodeCommitを検索
目的
- 新規リポジトリ作成
- 認証設定
新規リポジトリ作成
認証設定
SSH用のキー生成
入力内容は各々入力、passphraseは今回省略
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/takashimorita/.ssh/id_rsa): xxx_id_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in xxx_id_rsa.
Your public key has been saved in xxx_id_rsa.pub.
The key fingerprint is:
ユーザー設定
IAMよりユーザーを選択
MacにSSHの設定を追加
$ vi ~/.ssh/config
Host git-codecommit.*.amazonaws.com
User XXXXXX # SSHキーID
IdentityFile /Users/takashimorita/.ssh/xxx_id_rsa # 作成したプライベートキーパス
Git Clone
$ git clone ssh://git-codecommit.ap-southeast-1.amazonaws.com/v1/repos/[リポジトリ名]
Cloning into '[リポジトリ名]'...
The authenticity of host 'git-codecommit.ap-southeast-1.amazonaws.com (54.240.226.221)' can't be established.
RSA key fingerprint is SHA256:ZIsVa7OVzxrTIf+Rk4UbhPv6Es22mSB3uTBojfPXIno.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'git-codecommit.ap-southeast-1.amazonaws.com,54.240.226.221' (RSA) to the list of known hosts.
Counting objects: 3, done.
Receiving objects: 100% (3/3), done.
いいね!と思ったら LGTM お願いします
【PR】週末ハッカソンというイベントやってます! → https://weekend-hackathon.toyscreation.jp/about/