AWS CodeCommit without ssh keys

A super easy way to grant access to a AWS CodeCommit repository from an EC2 instance hosting e.g. Jenkins is to grant proper IAM Role permissions

 "Effect": "Allow",
 "Action": "codecommit:*",
 "Resource": "*"

and configure git client to use a helper:

git config --global credential.helper '!aws codecommit credential-helper $@'
git config --global credential.useHttpPath true


AWS CodeCommit without ssh keys

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.