This project enables you to store your CodePipeline definition in CodeCommit with your application code. In addition, it enables branch-based builds. Whenever a new branch is created, the template is used to create a pipeline for that branch.
More documentation and source code is available at: https://github.com/webdevwilson/aws-codepipeline-branches