[{"data":1,"prerenderedAt":60},["ShallowReactive",2],{"pattern-iot-dynamodb-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":47,"s3URL":6,"services":6,"stem":55,"testing":56,"videoId":6,"__hash__":59},"patterns\u002Fpatterns\u002Fiot-dynamodb-cdk.json","AWS IoT to Amazon DynamoDB",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fashu-joshi.json",{"text":13},[14],"cdk deploy","Create IoT Topic Rules to put event data to DynamoDB table","json","AWS CDK",{"template":19},{"projectFolder":20,"repoURL":21,"templateURL":22,"templateFile":23},"iot-dynamodbv2-ttl-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fiot-dynamodbv2-ttl-cdk","serverless-patterns\u002Fiot-dynamodbv2-ttl-cdk","iot-ddbv2\u002Flib\u002Fiot-ddbv2-stack.ts",{"headline":25,"text":26},"How it works",[27,28,29],"This pattern uses the DynamoDBv2 action to write all or parts of an MQTT message to an Amazon DynamoDB table.","Each attribute in the payload is written to a separate column in the DynamoDB table. The SQL statement calculates a time to live and puts into the payload when writing to the table.","This pattern deploys one DynamoDB table, one IoT rule.","TypeScript","200",{},{"icon1":34,"icon2":39,"line1":43},{"x":35,"y":36,"service":37,"label":38},20,50,"iot","IoT",{"x":40,"y":36,"service":41,"label":42},80,"dynamodb","Amazon DynamoDB",{"from":44,"to":45,"label":46},"icon1","icon2","",{"bullets":48},[49,52],{"text":50,"link":51},"Amazon DynamoDBv2 IoT Rule Action","https:\u002F\u002Fdocs.aws.amazon.com\u002Fiot\u002Flatest\u002Fdeveloperguide\u002Fdynamodb-v2-rule-action.html",{"text":53,"link":54},"Expiring items using DynamoDB Time to live (TTL)","https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FTTL.html","patterns\u002Fiot-dynamodb-cdk",{"text":57},[58],"See the GitHub repo for detailed testing instructions.","TbDn2sA8OfjZ-czb-O4UFneve0mEZwuZWOZN4RRvT8w",1779273336567]