Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created May 31, 2022
Embed
What would you like to do?
# main.py
from service import handle_record, handle_failed_record
def lambda_handler(event, context):
for record in event.get('Records'):
try:
handle_record(record)
except Exception as e:
handle_failed_record(record=record, exception=e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment