I am trying to copy the latest updates from one DynamoDB table and put them into another using Lambda. I have set up up a trigger in DynamoDB to update a Lambda function when a new entry happens on the table using the 'Blueprint'. I need help in putting the latest items in the new table.

Here is my Lambda code:

```
'use strict';

console.log('Loading function');

exports.handler = (event, context, callback) => {
    //console.log('Received event:', JSON.stringify(event, null, 2));
    event.Records.forEach((record) => {
        console.log(record.eventID);
        console.log(record.eventName);
        console.log('DynamoDB Record: %j', record.dynamodb);
    });
    callback(null, `Successfully processed ${event.Records.length} records.`);
};

```

This is the first time I am doing this so any help would be appreciated.

The items are trying to put into the table#2 are:

`{ "Item": { "Temp": "47.2", "Light": "29", "GWID": "BB00000002", "DateTm": "0\n18-05-05T16:44:39Z", "Status": "b", "ID": "AA00000024", "Hum": "29", "BatV": "3.01" } }`