Customize alarm message from AWS Cloudwatch

♀尐吖头ヾ 提交于 2020-01-23 02:36:47

问题


I got some alarm notifications from AWS Cloudwatch to my email but they are usually sent in a JSON format and the problem is that some of those emails are getting received by non-technical people in my company. I was wondering if that is possible to customize the emails sent by AWS SNS because I don't see any option in how to customize it.


回答1:


If you are using Cloudwatch/Event/Rules then you can use "Input transfomer" to customize the contents of the email and then SNS will send that instead of JSON.

I am using this setup to get notified when user signs in AWS console. In my case "Event Source" is "AWS Console Sign-in" but you can try with Cloudwatch and see if that gets you what you need.

See the screenshot, hope it helps.

https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatch-Events-Input-Transformer-Tutorial.html

https://forums.aws.amazon.com/thread.jspa?messageID=820808




回答2:


I don't think you can change the notifications from SNS sent via e-mail.

If you really need to customize them, you should look into SNS notifications via SES (Simple Email Service)



来源:https://stackoverflow.com/questions/53487067/customize-alarm-message-from-aws-cloudwatch

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