Creating an AWS CodeCommit Repository That Triggers Email Notifications

45 minutes
  • 5 Learning Objectives

About this Hands-on Lab

This lab will consist of creating a new AWS CodeCommit repository and adding source control. We will use a trigger in CodeCommit to listen for any new commit to our source code to trigger an email notification via Amazon Simple Notification Service (SNS).

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a CodeCommit Repository

Navigate to CodeCommit and create a repository.

Create an Amazon SNS Topic

Navigate to Amazon Simple Notification Service and create a topic.

Subscribe to the Topic

Create a subscription using the Email protocol and enter your email address.
Note: You will need to confirm your subscription, so make sure you have access to the email you provide.

Create an Event

Create an Event in EventBridge to monitor for changes to AWS CodeCommit.

Test the Event

Return to CodeCommit and upload a file to the repository. Check your email to ensure you’ve received a notification.

Additional Resources

In this lab scenario, our QA team says they are not being properly notified each time there is a code commit to the source code repository. To remedy this, the DevOps team plans to use a trigger in CodeCommit to listen for any new commit to our source code to trigger an email notification via Amazon Simple Notification Service (SNS) to the QA team.

Log in with the credentials provided and make sure you are in the us-east-1 region.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?