Skip to content

Instantly share code, notes, and snippets.

@brinnaebent
Created April 12, 2023 20:54
Show Gist options
  • Save brinnaebent/f91623df8bcdbb3b30d3bf75bb83eafa to your computer and use it in GitHub Desktop.
Save brinnaebent/f91623df8bcdbb3b30d3bf75bb83eafa to your computer and use it in GitHub Desktop.
def lambda_handler(event, context):
if event: # event is not None when S3 receives a document
print(event["Records"][0]) # print current event
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment