[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"pattern-iot-sqs":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":60,"stem":61,"testing":62,"videoId":31,"__hash__":66},"patterns\u002Fpatterns\u002Fiot-sqs.json","IoT rule to Amazon SQS queue",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\u002Fenoch-tsai.json",{"text":15},[16],"sam deploy --guided","Send to an SQS queue from an IoT rule","json","AWS SAM",{"template":21,"payloads":26},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"iot-mqttoverhttp-customauth","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fiot-mqttoverhttp-customauth","serverless-patterns\u002Fiot-mqttoverhttp-customauth","template.yaml",[],{"headline":28,"text":29,"test":31},"How it works",[30],"This SAM template deploys resources needed to send iot events to IoT Core service to forward these events through an IoT Rule to SQS Queue with bring-your-own custom authozier for device authentication.","","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,"sqs","SQS",{"from":46,"to":47,"label":31},"icon1","icon2",{"headline":49,"bullets":50},"Additional resources",[51,54,57],{"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},"Understanding the custom authentication workflow","https:\u002F\u002Fdocs.aws.amazon.com\u002Fiot\u002Flatest\u002Fdeveloperguide\u002Fcustom-authorizer.html",{"text":58,"link":59},"IoT rules","https:\u002F\u002Fdocs.aws.amazon.com\u002Fiot\u002Flatest\u002Fdeveloperguide\u002Fiot-rules.html",{"from":39,"to":43},"patterns\u002Fiot-sqs",{"headline":63,"text":64},"Testing",[65],"Use your choise of http client for testing against this endpoint: POST ${IoT Core Data Endpoint}\u002Ftopics\u002F$aws\u002Frules\u002Fdevice_events with json body and http header 'x-amz-customauthorizer-name: anonymous-authorizer'.","wJAjXJIgXJ6CJZu1DuBgbMCxPek-Nci1i-EOk7ycKTY",1778846885681]