Hook up with the occasion:
chmod 400 KEYPAIR.pem
ssh -i KEYPAIR.pem ec2-user@EC2PublicIP
Set up Git:
sudo yum set up -y git
Setup Git Credential Helper:
git config --global credential.helper '!aws codecommit credential-helper $@'
git config --global credential.UseHttpPath true
Now you possibly can clone the CodeCommit repo which can look one thing like the next:
https://git-codecommit.us-east-1.amazonaws.com/v1/repos/My-Repo