Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created May 31, 2022 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardgrantserverless/93ec0341a4324429c58c63ade846d3a7 to your computer and use it in GitHub Desktop.
Save richardgrantserverless/93ec0341a4324429c58c63ade846d3a7 to your computer and use it in GitHub Desktop.
# 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