Skip to content

Instantly share code, notes, and snippets.

@georgmao
Created February 23, 2020 02:58
Show Gist options
  • Save georgmao/3e4d63f6c6f23cbe758ebc9a8c6e7616 to your computer and use it in GitHub Desktop.
Save georgmao/3e4d63f6c6f23cbe758ebc9a8c6e7616 to your computer and use it in GitHub Desktop.
This is a sample event generated by a S3 put action
{
"Records": [
{
"eventVersion": "2.0",
"eventSource": "aws:s3",
"awsRegion": "us-east-1",
"eventTime": "1970-01-01T00:00:00.000Z",
"eventName": "ObjectCreated:Put",
"userIdentity": {
"principalId": "EXAMPLE"
},
"requestParameters": {
"sourceIPAddress": "127.0.0.1"
},
"responseElements": {
"x-amz-request-id": "EXAMPLE123456789",
"x-amz-id-2": "EXAMPLE123/5678abcdefghijklambdaisawesome/mnopqrstuvwxyzABCDEFGH"
},
"s3": {
"s3SchemaVersion": "1.0",
"configurationId": "testConfigRule",
"bucket": {
"name": "example-bucket",
"ownerIdentity": {
"principalId": "EXAMPLE"
},
"arn": "arn:aws:s3:::example-bucket"
},
"object": {
"key": "test/key",
"size": 1024,
"eTag": "0123456789abcdef0123456789abcdef",
"sequencer": "0A1B2C3D4E5F678901"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment