I am working on an Iot project. Here, I am using AWS Iotcore that is receiving data from Iot device and by a lambda function triggering that data to Dynamodb. I have used cloudformation for deploying the lambda functions in order to fetching last 10 hours…