I have a JSON having an array of objects in the following format. How can i add it in dynamoDB using a lambda function(NodeJS). Assume my JSON is in an s3 bucket name "databucket" and the file name is data.json. I have used "userId" as the key while creating the DB table. Thanks in advance
{
"records": [
{
"first-name": "Mark",
"last-name": "rob",
"userId": "fvdvfd"
},
{
"first-name": "Alan",
"last-name": "thomas",
"userId": "wee"
},
{
"first-name": "Joan",
"last-name": "Young",
"userId": "wee"
}
]
}