How do i write a AWS IoT Core rule for subscribing & unsubscribing to a topic.


I want to invoke a lambda when a user subscribes & unsubscribes to one of my topic's on IoT. Could someone tell me how to do this?

If this isn't possible yet it should really be added to the IoT service.

asked 3 months ago26 views
1 Answer
Accepted Answer

You can have the rule get triggered based on the relevant reserved topic. For example:

SELECT * FROM '$aws/events/subscriptions/subscribed/+'
answered 3 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