codecommit clone git repository

Install package

sudo apt install python-pip

pip install git-remote-codecommit


generate ssh pub key

ssh-keygen


Upload id_rsa.pub file to IAM user







Create file in .ssh/config

$ vim .ssh/config

Host git-codecommit.ap-south-1.amazonaws.com

  User ACCESS_KEY_HERE

  IdentityFile ~/.ssh/id_rsa


Clone codecommit repository

git clone ssh://ACCESS_KEY@git-codecommit.ap-south-1.amazonaws.com/v1/repos/repo_name new_code_dir

ref url:
https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-git-remote-codecommit.html
Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment