[{"data":1,"prerenderedAt":64},["ShallowReactive",2],{"pattern-iot-lambda":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":27,"language":32,"level":33,"meta":34,"patternArch":35,"resources":48,"s3URL":6,"services":57,"stem":58,"testing":59,"videoId":31,"__hash__":63},"patterns\u002Fpatterns\u002Fiot-lambda.json","IoT rule to AWS Lambda",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fvaldeci-gomes.json",{"text":15},[16],"sam deploy --guided","Invoke a Lambda function from an IoT rule","json","AWS SAM",{"template":21,"payloads":26},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"iot-lambda","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fiot-lambda","serverless-patterns\u002Fiot-lambda","template.yaml",[],{"headline":28,"text":29,"test":31},"How it works",[30],"When an IoT event is sent to an IoT topic, a Lambda function is invoked. This pattern configures a Lambda function to poll this event. The function is invoked with a payload containing the contents of the message event.","","Node.js","200",{},{"icon1":36,"icon2":41,"line1":45},{"x":37,"y":38,"service":39,"label":40},20,50,"iot","IoT",{"x":42,"y":38,"service":43,"label":44},80,"lambda","AWS Lambda",{"from":46,"to":47,"label":31},"icon1","icon2",{"headline":49,"bullets":50},"Additional resources",[51,54],{"text":52,"link":53},"Managing backend requests and frontend notifications in serverless web apps","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fmanaging-backend-requests-and-frontend-notifications-in-serverless-web-apps\u002F",{"text":55,"link":56},"Building serverless applications with streaming data","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fbuilding-serverless-applications-with-streaming-data-part-1\u002F",{"from":39,"to":43},"patterns\u002Fiot-lambda",{"headline":60,"text":61},"Testing",[62],"See the GitHub repo for detailed testing instructions.","XdFddkLCqVcIWYxOeiCxuJdhQAyD7GDXo9akgqnLDk8",1782470141488]