PacktPublishing / Data-Engineering-with-AWS

Data Engineering with AWS, Published by Packt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"File \"/var/task/lambda_function.py\", line 7, in lambda_handler\n for record in event['Records']:\n"

elfcounsel opened this issue · comments

In chapter 3 csvtoparquet lambda function, line 7 is generating the error:
{
"errorMessage": "'Records'",
"errorType": "KeyError",
"requestId": "0f5575e2-d6db-4b7c-b233-59b4a42265a4",
"stackTrace": [
" File "/var/task/lambda_function.py", line 7, in lambda_handler\n for record in event['Records']:\n"
]
}

In looking at the aws data wrangler api reference i don't see a lambda API, but it seems like the event function doesn't exist anymore? Not sure how to fix it.