Integrating AWS CodeCommit with Jenkins

1. Create an IAM user name ‘jenkins’
2. Save the access key ID and the secret key for jenkins user
3. Attach the managed policy named AWSCodeCommitPowerUser to the IAM user you created.
4. Configure the AWS CLI.

cd ~jenkins
sudo -u jenkins aws configure

5. Configure Git to use IAM credentials and an HTTP path to access the repositories hosted by AWS CodeCommit.

sudo -u jenkins git config --global credential.helper '!aws codecommit credential-helper $@'
sudo -u jenkins git config --global credential.useHttpPath true
sudo -u jenkins git config --global ""
sudo -u jenkins git config --global "MyJenkinsServer"


Follow section name “Scenario 1: Set Up Project” from the link to test your setup.


Viet Luu has written 318 articles

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

We are thankful for your never ending support.

Leave a Reply