AWS Code Commit简单通知服务:有没有办法获得格式更好的通知电子邮件?还是将SES附加到代码提交? [英] AWS Code Commit Simple Notification Service: is there a way to get better formatted notification email? Or attach SES to Code Commit?
问题描述
目前,我们的团队正在将有关拉取请求,分支更改等的AWS SNS消息作为JSON嵌入到电子邮件中,这意味着,在没有换行符等的情况下,包装到邮件消息宽度的JSON结构。没关系,但是人们很难一眼就能看到发生了什么,因此很容易被忽略。有没有办法使它更好地格式化?我查看了SNS选项并进行了一些Google搜索,发现了这一点-
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?
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.
这篇关于AWS Code Commit简单通知服务:有没有办法获得格式更好的通知电子邮件?还是将SES附加到代码提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!