[{"data":1,"prerenderedAt":72},["ShallowReactive",2],{"pattern-iot-sns-sqs-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":13,"deploy":15,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":28,"language":34,"level":35,"meta":36,"patternArch":37,"resources":56,"s3URL":6,"services":65,"stem":66,"testing":67,"videoId":33,"__hash__":71},"patterns\u002Fpatterns\u002Fiot-sns-sqs-cdk.json","IoT rule to Amazon SNS topic to Amazon SQS queue",null,{"headline":8,"text":9},"Cleanup",[10,11,12],"1. Delete the stack: \u003Ccode>npx cdk destroy\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>.","3. You see a message confirming DELETE_COMPLETE.",[14],"content\u002Fcontributors\u002Fpatrick-malatesta.json",{"text":16},[17],"cdk deploy","IoT Rule with a SNS action, a SNS Topic and a SQS standard Queue subscribed to the SNS topic.","json","AWS CDK",{"template":22,"payloads":27},{"repoURL":23,"templateURL":24,"projectFolder":25,"templateFile":26},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fiot-sns-sqs-cdk","serverless-patterns\u002Fiot-sns-sqs-cdk","iot-sns-sqs-cdk","iot_sns_sqs_cdk\u002Fiot_sns_sqs_cdk_stack.py",[],{"headline":29,"text":30,"test":33},"How it works",[31,32],"This pattern contains a sample AWS CDK stack to create an IoT Rule with a SNS action, a SNS Topic and a SQS standard Queue subscribed to the SNS topic.","When a message is published to the IoT topic defined in the IoT Rule, this message will be published to the SNS topic and then the message will be delivered to the SQS queue subscribed to the SNS topic.","","Python","200",{},{"icon1":38,"icon2":43,"icon3":47,"line1":51,"line2":54},{"x":39,"y":40,"service":41,"label":42},20,50,"iot","IoT",{"x":44,"y":40,"service":45,"label":46},60,"sns","SNS",{"x":48,"y":40,"service":49,"label":50},85,"sqs","SQS",{"from":52,"to":53,"label":33},"icon1","icon2",{"from":53,"to":55,"label":33},"icon3",{"headline":57,"bullets":58},"Additional resources",[59,62],{"text":60,"link":61},"IoT Rule SNS action","https:\u002F\u002Fdocs.aws.amazon.com\u002Fiot\u002Flatest\u002Fdeveloperguide\u002Fsns-rule-action.html",{"text":63,"link":64},"Subscribing a SQS queue to a SNS topic","https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-configure-subscribe-queue-sns-topic.html",{"from":41,"to":49},"patterns\u002Fiot-sns-sqs-cdk",{"headline":68,"text":69},"Testing",[70],"See the GitHub repo for detailed testing instructions.","fr1sQ0VEHSGs0NMC4J8eHTA9Uw7tsnPNh2z9zUWDwks",1778846885654]