CodeBuild project + Event rule + SNS allow you to send build notification email messages. This mechanism, however, has limitation and requires you to use ugly syntax to construct multi-line message text. The message then has the unexplainable "
in the beginning and in the end of each line.
The goal of this lab is to show how AWS Lambda allows you to send nicer build notifications.
./tool.sh deploy <BranchName>
to deploy.- Check inbox for messages from AWS and confirm your subscription.
- Note that this step will also create a web hook in the GitHub repository.
- Create a merge request and see how it has the "All checks have passed" section.
./tool.sh undeploy
to undeploy.
- With SNS, you still can't use arbitrary HTML - only the plain text. Consider using SES if you want HTML.