[{"data":1,"prerenderedAt":70},["ShallowReactive",2],{"pattern-iot-kinesis-lambda-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":29,"level":30,"meta":31,"patternArch":32,"resources":51,"s3URL":6,"services":6,"stem":65,"testing":66,"videoId":6,"__hash__":69},"patterns\u002Fpatterns\u002Fiot-kinesis-lambda-cdk.json","IoT Core to Amazon Kinesis to AWS Lambda",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fpatrick-malatesta.json",{"text":13},[14],"cdk deploy","Create a IoT Rule with a Kinesis Data Stream action that publishes messages to a Kinesis Data Stream and triggers a Lambda function to process the data.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fiot-kinesis-lambda-cdk","serverless-patterns\u002Fiot-kinesis-lambda-cdk","iot-kinesis-lambda-cdk","iot_kinesis_lambda_cdk\u002Fiot_kinesis_lambda_cdk_stack.py",{"headline":25,"text":26},"How it works",[27,28],"This pattern contains a sample AWS CDK stack to create an IoT Rule with a Kinesis Data Streams action and an AWS Lambda function.","When a message is published to the IoT topic defined in the IoT Rule, this message will be delivered to the Kinesis Data Stream. The Lambda function is configured with an event source mapping and it will be triggered to process the streaming data. In this sample the Lambda function decodes the message polled from the Kinesis Data Stream and logs its content.","Python","200",{},{"icon1":33,"icon2":38,"icon3":41,"line1":45,"line2":49},{"x":34,"y":35,"service":36,"label":37},20,50,"iot","IoT",{"x":35,"y":35,"service":39,"label":40},"kinesis-datastreams","Kinesis",{"x":42,"y":35,"service":43,"label":44},80,"lambda","Lambda",{"from":46,"to":47,"label":48},"icon1","icon2","",{"from":47,"to":50,"label":48},"icon3",{"bullets":52},[53,56,59,62],{"text":54,"link":55},"AWS IoT Core","https:\u002F\u002Fdocs.aws.amazon.com\u002Fiot\u002Flatest\u002Fdeveloperguide\u002Fwhat-is-aws-iot.html",{"text":57,"link":58},"AWS Lambda","https:\u002F\u002Faws.amazon.com\u002Fs3\u002F",{"text":60,"link":61},"Amazon Kinesis Data Streams","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstreams\u002Flatest\u002Fdev\u002Fintroduction.html",{"text":63,"link":64},"IoT Rule Kinesis Data Streams action","https:\u002F\u002Fdocs.aws.amazon.com\u002Fiot\u002Flatest\u002Fdeveloperguide\u002Fkinesis-rule-action.html","patterns\u002Fiot-kinesis-lambda-cdk",{"text":67},[68],"See the GitHub repo for detailed testing instructions.","F4JHVp3UhbS8QtCSBY7iavqdkkf5EqUWejGbxCNYQP4",1779273336595]