Integrating AWS CodeCommit with Jenkins

https://aws.amazon.com/blogs/devops/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 user.email "me@mycompany.com"
sudo -u jenkins git config --global user.name "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