title: AWS Lambda function write to DynamoDB
body: <p>I'm a beginner with Amazon Web Services and NodeJS.</p>
  
  <p>I wrote a Lambda function, triggered by AWS IoT, that parse a JSON.</p>
  
  <pre><code>enter code here
  use strict';
  
  console.log('Loading function');
  
  exports.handler = (event, context, callback) =&gt; {
     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');
  };
  </code></pre>
  
  <p>Now I want to store the json fields into a DynamoDB table.</p>
  
  <p>Any suggestion?</p>
  
  <p>Thanks a lot!</p>