SNS notification email/SMS body customization

0

I am publishing DHT11 sensor data in AWS cloud through AWS IOT Core. SNS notification email/SMS will trigger if temp/humidity crosses a certain threshold. In present, i am getting below email/SMS using SNS,

SMS body: topic name > {}

Email Subject line --> topic name body --> {}

Please let me know if i can customize SNS email/SMS body.

1개 답변
0
수락된 답변

Hi. If you are talking about the SNS rule action for the AWS IoT Core Rules engine then no. However you can introduce a Lambda to achieve it. Tutorial here: https://docs.aws.amazon.com/iot/latest/developerguide/iot-lambda-rule.html

If you require more sophisticated alert logic, you may consider using AWS IoT Events and this also supports customizing the notification messages using Lambda: https://docs.aws.amazon.com/iotevents/latest/developerguide/lambda-support.html. Alternatively, if you would visualize the data in Amazon Managed Grafana already, its alerts allow you to customize the message body: https://docs.aws.amazon.com/grafana/latest/userguide/alert-notifications.html#list-of-supported-notifiers

profile pictureAWS
전문가
Greg_B
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인