[{"data":1,"prerenderedAt":69},["ShallowReactive",2],{"pattern-iot-lambda-pub-receiver-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":30,"level":31,"meta":32,"patternArch":33,"resources":50,"s3URL":6,"services":6,"stem":64,"testing":65,"videoId":6,"__hash__":68},"patterns\u002Fpatterns\u002Fiot-lambda-pub-receiver-cdk.json","AWS Lambda to Amazon IoT Core to AWS Lambda",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fphilippe-wanner.json",{"text":13},[14],"cdk deploy","Create a Lambda function publishing into an IoT topic, triggering an action calling another Lambda function.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fiot-lambda-pub-receiver-cdk","serverless-patterns\u002Fiot-lambda-pub-receiver-cdk","iot-lambda-pub-receiver-cdk","lib\u002Flambda-iot-cdk-stack.ts",{"headline":25,"text":26},"How it works",[27,28,29],"This sample project demonstrates how to use an AWS Lambda Function to publish messages into AWS IoT Core topic and get a rule triggered by a condition to process relevant messages into another Lambda. This pattern is leveraging CloudWatch logs to ease the debugging and visibility into the processed messages.","The function are written in Python and the infrastructure is described with AWS CDKv2 in Typescript. The patterns also shows an effective way to manage Python dependencies through Docker built image and requiements.txt file.","This pattern deploys 2 Lambda functions, 1 IoT rule and action, 3 log groups.","Python","200",{},{"icon1":34,"icon2":39,"icon3":42,"line1":44,"line2":48},{"x":35,"y":36,"service":37,"label":38},20,50,"lambda","AWS Lambda",{"x":36,"y":36,"service":40,"label":41},"iot","AWS IoT Core",{"x":43,"y":36,"service":37,"label":38},80,{"from":45,"to":46,"label":47},"icon1","icon2","",{"from":46,"to":49,"label":47},"icon3",{"bullets":51},[52,55,58,61],{"text":53,"link":54},"AWS IoT Core - Getting started with AWS IoT Core tutorials","https:\u002F\u002Fdocs.aws.amazon.com\u002Fiot\u002Flatest\u002Fdeveloperguide\u002Fiot-gs.html",{"text":56,"link":57},"AWS IoT Core action resources","https:\u002F\u002Fdocs.aws.amazon.com\u002Fiot\u002Flatest\u002Fdeveloperguide\u002Fiot-action-resources.html",{"test":59,"link":60},"Building Lambda with Python","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Flambda-python.html",{"text":62,"link":63},"Working with the AWS CDK in TypeScript","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Fv2\u002Fguide\u002Fwork-with-cdk-typescript.html","patterns\u002Fiot-lambda-pub-receiver-cdk",{"text":66},[67],"See the GitHub repo for detailed testing instructions.","OqSdzXUtmdwjO7fXQ-7KISXBwUAb1q89s48mPV70tlc",1778846885613]