I'm a beginner with Amazon Web Services and NodeJS.
I wrote a Lambda function, triggered by AWS IoT, that parse a JSON.
enter code here
use strict';
console.log('Loading function');
exports.handler = (event, context, callback) => {
console.log('Received event:', JSON.stringify(event, null, 2));
console.log('Id =', event.Id);
console.log('Ut =', event.Ut);
console.log('Temp =', event.Temp);
console.log('Rh =', event.Rh);
//callback(null, event.key1); // Echo back the first key value
//callback('Something went wrong');
};
Now I want to store the json fields into a DynamoDB table.
Any suggestion?
Thanks a lot!