AWS IoT to Amazon DynamoDB

IoT → Amazon DynamoDB

Create IoT Topic Rules to put event data to DynamoDB table

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.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/iot-dynamodbv2-ttl-cdk

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Ashu Joshi

Ashu Joshi

I am a Principal Architect, AWS Cloud Architect, Full-Stack Developer, Edge AI/ML/IoT Engineer, and Serverless Enthusiast.

Follow on LinkedIn