React to CodeCommit events with AWS Lambda
280 students completed the lab in ~1h:12m
Total available time: 2h:0m
142 students rated this lab!
How to process CodeCommit events with AWS Lambda
AWS CodeCommit lets you host private Git repositories within the AWS ecosystem, in a secure and highly scalable way, fully integrated with traditional Git tools.
You can configure CodeCommit to trigger actions whenever you push new code, create new branches or tags, etc. This allows you to send notifications, implement custom logic or integrate third party services.
In this lab, we will learn how to process CodeCommit events with a Lambda Function. As a simple example, we will use Python to create custom SNS notifications, containing useful information about branch, author and message for each commit.
Follow these steps to learn by building helpful cloud resources
Logging in to the Amazon Web Services Console
Your first step to start the Lab experience
CodeCommit Events Overview
What triggers can you define for AWS CodeCommit?
Creating a new CodeCommit repository
Learn how to create a new CodeCommit empty repository
Create a new SNS topic and subscription
Configure SNS to send enhanced notifications tied to CodeCommit
Implementing a Lambda Function to process CodeCommit events
AWS Lambda implementation of the processing logic
Test the CodeCommit trigger
Push new commits and receive email notifications