I want to send individual data values to respective columns received from AWS IoT to AWS DynamoDB.
My Devices send this payload:
{
"state": {
"desired": {
"DeviceId" : "Device101",
"DateTime" : now,
"Room1 Temperature" : m_t,
"Room2 Temperature": b_t
},
"reported": {
"Item": {
"DeviceId" : "Device101",
"DateTime" : now,
"Room1 Temperature" : m_t,
"Room2 Temperature": b_t
}
}
}
}
I am receiving this payload as a Shadow Update on my Shadow Link here :
$aws/things/shadow/update
I have created a Sample DynamoDB Table and linked it with AWS IoT Rule, so that whenever data is incoming into the above mentioned topic, it will be triggered by the SQL Query:
SELECT * FROM '$aws/things/shadow/update'
- This Data is reflected in my Shadow Update
- This Data is not forwarded to DynamoDB table
- What is the problem?!
Any help would be appreciated. Thanks.