SNS notification email/SMS body customization


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 Answer
Accepted Answer

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:

If you require more sophisticated alert logic, you may consider using AWS IoT Events and this also supports customizing the notification messages using Lambda: Alternatively, if you would visualize the data in Amazon Managed Grafana already, its alerts allow you to customize the message body:

profile picture
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions