Using Cloud Build on AWS CodeCommit Git Server

Hello,

I am having issues using Cloud Build on my Git repository, hosted with AWS CodeCommit.
I created a user, gave him CodeCommitPowerUser policy, and set the public ssh key provided by Cloud Build.

However Cloud Build is still denied access.

I am looking for help on this issue as I cannot see what I did wrong.

Best regards

Don’t know if you got this figured out by now, but you need to specify your SSH Key ID in the repo url:

ssh://ABCDEFG123456789@git-codecommit.us-east-1.amazonaws.com/v1/repos/somerepo

2 Likes

I was able to use it. Triple check/re-do everything if something didn’t work.

I don’t know if it is a bug, but I only be able to make it works by creating a new project in Cloud Build. When I edit a project to update its repository it simple go back to the settings page with new url, but after press f5 to refresh the page everyting back to old settings.

This worked for me! Many thanks!