How to update shadow with Single AWS IOT rule

0 votes
Hi I am new to AWS IOT rules and I have a use case where I need to process all the successful updates to multiple thing shadows in a lambda. The rule triggers the lambda.

Currently my iot rule is something like this:

SELECT * FROM '$aws/things/testThing/shadow/update/accepted'

But instead of 'testThing' i want to use something like

SELECT * FROM '$aws/things/#/shadow/update/accepted'

which will trigger the same lambda for any thing shadow update.

But I am unable to come up with such a rule. Currently I am creating multiple rules(one for each shadow) which I don't think is the right thing to do.

I might use something like

SELECT * FROM '$aws/things/#'

which will give lot of unwanted data and unwanted triggers, I am trying to avoid doing such a thing.
Oct 15, 2018 in AWS by findingbugs
• 4,780 points
2,067 views

1 answer to this question.

0 votes
You need to use + instead of *,#

SELECT * FROM '$aws/things/+/shadow/update/accepted'
answered Oct 15, 2018 by Priyaj
• 58,020 points

Related Questions In AWS

0 votes
1 answer

How to switch between multiple accounts with AWS SDK

You can define multiple profiles in ~/.aws/credentials ...READ MORE

answered Aug 24, 2018 in AWS by Priyaj
• 58,020 points
2,192 views
+1 vote
1 answer
0 votes
1 answer

How to use AWS CLI with Elastic Beanstalk?

You have to create a source bundle ...READ MORE

answered Sep 28, 2018 in AWS by Archana
• 4,170 points
2,201 views
+1 vote
1 answer

How to update AWS CLI?

You can simply use  pip install --upgrade awscli READ MORE

answered Dec 11, 2018 in AWS by Ravi
971 views
0 votes
1 answer
0 votes
1 answer

AWS IOT Button Wifi network name

You can read about the complete setup ...READ MORE

answered Oct 12, 2018 in IoT (Internet of Things) by Annie97
• 2,160 points
758 views
0 votes
1 answer
+1 vote
1 answer

How to add SSL certificate to AWS EC2 with the help of new AWS Certificate Manager service

refer this link  https://aws.amazon.com/certificate-manager/faqs/ You can't install the certificates ...READ MORE

answered Jul 19, 2018 in AWS by Priyaj
• 58,020 points
1,862 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP