Skip to content

Latest commit

 

History

History

iot-topic-filter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

IOT Topic Filter Example

This is a trivial example that shows how to trigger Lambda functions when a message is posted to AWS IOT Topics. The lambda function just logs messages, so you can post a message to the topic and then check CloudWatch logs to see the execution result.

Try it out

  1. grab the dependencies: npm install
  2. create the lambda function: npm run create
  3. set up a IOT topic filter: npm run subscribe
  4. publish an event to the topic: node post.js
  5. list cloudwatch logs associated with your function: npm run check-logs

More information