This repository contains sample code and it a Terraform version of this AWS Cloudformation architecture from this blog post:
Validating AWS CodeCommit Pull Requests with AWS CodeBuild and AWS Lambda
This sample code is made available under a modified MIT license. See the LICENSE file.