Code Commit -> Code Pipeline -> Code Build

This example will set up a CodeCommit repository. When you push into the master branch it will trigger CodePipeline and run CodeBuild build.

The repository URL is added to the Output of the stack, make sure to push to the master branch of that repo.