Created
July 4, 2016 20:24
-
-
Save sawyerh/f809cc6d539c54287fc87223fc6c0f9b to your computer and use it in GitHub Desktop.
Sample S3 PUT event for AWS Lambda
This file contains hidden or 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
{ | |
"Records": [ | |
{ | |
"eventVersion": "2.0", | |
"eventTime": "1970-01-01T00:00:00.000Z", | |
"requestParameters": { | |
"sourceIPAddress": "127.0.0.1" | |
}, | |
"s3": { | |
"configurationId": "testConfigRule", | |
"object": { | |
"eTag": "0123456789abcdef0123456789abcdef", | |
"sequencer": "0A1B2C3D4E5F678901", | |
"key": "HappyFace.jpg", | |
"size": 1024 | |
}, | |
"bucket": { | |
"arn": "arn:aws:s3:::mybucket", | |
"name": "sourcebucket", | |
"ownerIdentity": { | |
"principalId": "EXAMPLE" | |
} | |
}, | |
"s3SchemaVersion": "1.0" | |
}, | |
"responseElements": { | |
"x-amz-id-2": "EXAMPLE123/5678abcdefghijklambdaisawesome/mnopqrstuvwxyzABCDEFGH", | |
"x-amz-request-id": "EXAMPLE123456789" | |
}, | |
"awsRegion": "us-east-1", | |
"eventName": "ObjectCreated:Put", | |
"userIdentity": { | |
"principalId": "EXAMPLE" | |
}, | |
"eventSource": "aws:s3" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment