Home / Companies / Tinybird / Blog / Post Details
Content Deep Dive

Set up event-based S3 file ingestion with AWS Lambda for free

Blog post from Tinybird

Post Details
Company
Date Published
Author
Alasdair Brown
Word Count
2,173
Language
English
Hacker News Points
-
Summary

The blog post provides a detailed tutorial on setting up an event-driven real-time data ingestion system using AWS S3 Event Notifications and AWS Lambda, with the aim of sending file change events to the data platform Tinybird. It outlines the process of creating an S3 bucket and a corresponding Lambda function configured with Python 3.10 runtime on an arm64 architecture for cost efficiency. The tutorial guides the user through configuring IAM permissions, writing Lambda code to generate presigned URLs for file sharing, and sending these URLs to Tinybird's API for data ingestion. The post also includes instructions for setting up S3 Event Notifications to trigger the Lambda function upon new file uploads, specifically targeting CSV files. The author emphasizes the flexibility of event-driven architectures and suggests alternative methods, such as using message queues like SNS or SQS, for processing file changes. The post concludes by encouraging readers to explore Tinybird's features and community resources to enhance their understanding and implementation of real-time data workflows.