AWS Code Commit Simple Notification Service: is there a way to get better formatted notification email? Or attach SES to Code Commit?

送分小仙女□ 提交于 2020-06-17 15:56:06

问题


At the moment our team is getting AWS SNS messages regarding pull requests, branch changes etc as JSON embedded in an email, which means, without line-breaks, etc, a JSON structure wrapped to the width of the mail message. That's OK, but makes it difficult for people to read at a glance what's occurred, and, thus, easy to ignore. Is there a way to have it arrive better formatted? I looked through the SNS options and did some googling and found this -- Sending html content in AWS SNS(Simple Notification Service) emails notifications -- which says that Simple Email Service is a better option. How might I attach this to Code Commit events?


回答1:


Cloudwatch Events Input Transformer can be used to convert event data in Json format to a more readable format.

The sample rule below matches the fields of CodeCommit:pullRequestCreated event and transforms it to a readable notification message.



来源:https://stackoverflow.com/questions/59283052/aws-code-commit-simple-notification-service-is-there-a-way-to-get-better-format

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!