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

0

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 2 years ago290 views
1 Answer
1
Accepted Answer

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

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