Posted On: Mar 7, 2016
You can now create triggers that send notifications or automatically run code whenever a change occurs in an AWS CodeCommit repository. You can send notifications from Amazon Simple Notification Service (Amazon SNS) or invoke AWS Lambda functions in response to the repository events you choose (e.g. commit to a branch, branch or tag creation, and branch or tag deletion). This helps you customize and automate your development workflow.
Using Amazon SNS, you can configure notifications (e.g. SMS, email) and create HTTP webhooks that are triggered by repository events. This lets you send notifications to users and other services. For example, you can create a trigger that will start a build on your continuous integration server using an HTTP webhook with Amazon SNS. You can also notify Amazon Simple Queue Service (SQS) about changes to your repositories using Amazon SNS notifications.
You can also create repository triggers that invoke Lambda functions. AWS Lambda is a service that lets you run code without provisioning or managing servers. With Lambda, you can run custom logic using code. For example, you can define a Lambda function that parses information received from AWS CodeCommit and then posts a short message based on that information to your HipChat room whenever someone pushes to a repository.
You can create repository triggers through the AWS CodeCommit console and AWS CLI. To learn more about how to create and manage triggers for your repositories, go here.
For more information about AWS CodeCommit:
• Product Page
• Documentation