diff --git a/lambdas/rich_pdf_ingestion/src/index.py b/lambdas/rich_pdf_ingestion/src/index.py index 5599b9c..d7811e0 100644 --- a/lambdas/rich_pdf_ingestion/src/index.py +++ b/lambdas/rich_pdf_ingestion/src/index.py @@ -46,7 +46,7 @@ def fetch_file(bucket, key): def lambda_handler(event, context): print(event) - records = json.loads(event["Records"]) + records = event["Records"] for record in records: eventName = record["eventName"] print(f"eventName: {eventName}")