-
-
Save richardgrantserverless/93ec0341a4324429c58c63ade846d3a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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