Created
August 7, 2019 16:42
-
-
Save mushketyk/b17bda90ac8c3eb60738df2604cfe118 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
import json | |
print('Loading function') | |
def lambda_handler(event, context): | |
#print("Received event: " + json.dumps(event, indent=2)) | |
for record in event['Records']: | |
print(record['eventID']) | |
print(record['eventName']) | |
print("DynamoDB Record: " + json.dumps(record['dynamodb'], indent=2)) | |
return 'Successfully processed {} records.'.format(len(event['Records'])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment