AWS Lambda source - OXYGEN-MARKET/oxygen-market.github.io GitHub Wiki
HOME > SNOWPLOW TECHNICAL DOCUMENTATION > Webhooks > AWS Lambda Source
Contents
1. Overview
This event source allows you to track S3 bucket events (file created, file deleted) on specified buckets.
2. Implementation
2.1 Event source
Using the AWS Lambda "push" model, the AWS Lambda source is invoked by S3 on put/delete events. A sample of the events is provided here (under S3 Put and S3 Delete). The JSON Schema for the above events is available on Iglu Central here.
The AWS Lambda function is written in Java 8 using gradle as a build tool. It's uploaded to AWS as a zip - and uses the description
field of the Lambda as the collector endpoint.
The Snowplow Java Tracker is used to transmit events.
3. Events
All resources for the S3 source events:
Event | JSON Schema | JSON Paths | Redshift Table |
---|---|---|---|
S3 Put/Delete | com.amazon.aws.lambda/s3_notification_event | s3_notification_event_1.json | s3_notification_event_1.sql |