You can configure a CodeCommit repository so that code pushes or other events trigger actions, such as sending a notification from Amazon Simple Notification Service (Amazon SNS) or invoking a function in AWS Lambda. You can create up to 10 triggers for each CodeCommit repository.
Triggers are commonly configured to:
Send emails to subscribed users every time someone pushes to the repository.
Notify an external build system to start a build after someone pushes to the main branch of the repository
In this step you will create a trigger in CodeCommit which invokes a Lambda function when a branch or tag is created.
Open the CodeCommit console
In Repositories, choose the
gitflow-workshop repository where you want to create triggers for repository events.
In the navigation pane for the
gitflow-workshop repository, choose Settings, and then choose Triggers.
Choose Create trigger. In Create trigger, do the following:
Create branch or tag.
Delete branch or tag.
After you finish those steps , you should see something similar to below: