Reading data from S3 based on an event
At the end of last chapter, you wrote a method to read data from S3 - analyze_data. However, you had to execute that method manually.
We're going to write a Lambda function that runs every time Firehose writes a new file to S3. For now, it only prints out the files that were added.
You will be editing the recordReaderS3/lambda_function.py
file in the editor. This contains the handler for our Lambda function.
Don't forget: an object being written to S3 results in an ObjectCreated:Put
event. You can always click on the slides icon in the top right to see the slides - they'll be pretty helpful!
This exercise is part of the course
Streaming Data with AWS Kinesis and Lambda
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
