React to CodeCommit events with AWS Lambda

Lab Steps

Logging in to the Amazon Web Services Console
CodeCommit Events Overview
Creating a new CodeCommit repository
Create a new SNS topic and subscription
Implementing a Lambda Function to process CodeCommit events
Test the CodeCommit trigger

The hands-on lab is part of these learning paths

DevOps Engineer – Professional Certification Preparation for AWS
course-steps 35 certification 5 lab-steps 18 quiz-steps 2 description 3
Certified Developer – Associate Certification Preparation for AWS
course-steps 29 certification 5 lab-steps 22 description 2

Ready for the real environment experience?

Time Limit2h
star star star star star-half


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.



January 10th, 2019 - Added a validation Lab Step to check the work you perform in the Lab

About the Author

Alex is an Italian Software Engineer with a great passion for web technologies and music.

He spent the last 5 years building web products and deepening his knowledge on full stack web development and software design, with a main focus on frontend and UX.

Despite being a passionate coder, Alex worked hard on his software and sound engineering background, which provides him the tools to deal with multimedia, signal processing, machine learning, AI and many interesting topics related to math and data science.

Indeed, he had the opportunity to study and live in a very young and motivating environment in Bologna and Milan, two of the biggest and oldest Italian Universities. These experiences lead him to work on several projects involving robotics, machine intelligence, music semantic analysis and modern web development.

Alex is currently a Senior Software Engineer at Cloud Academy, a position that gave him the possibility to discover the Cloud world and exploit its potential as a web developer and data scientist.