Filter on Thing Group at MQTT presence topic in AWS IoT

0

Hello,

as we are having DEV and PROD on the same AWS account, we would like to filter for attributes or Thing Group when subscriping to the $aws/events/presence/+/+ topic. Is there a way to do this without further business logic by just using some wildcard-magic?

Thank you in advance

Daniel

asked 2 months ago92 views
1 Answer
0

Hi. The short answer is no.

If you had strong conventions around your client ID naming, you might be able to use a where clause like this WHERE startswith(topic(5),"foobar") = true.

This old answer gives a great treatment of other options: https://repost.aws/questions/QUB6KIB7m0SOatcdP8HhA3zQ/filter-on-thing-group-from-aws-iot-rule. Including a recommendation to separate DEV and PROD into separate accounts. I strongly recommend you do that.

profile pictureAWS
EXPERT
Greg_B
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