Aan de slagGa gratis aan de slag

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.

PCXoZ.png

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!

Deze oefening maakt deel uit van de cursus

Streaming Data with AWS Kinesis and Lambda

Cursus bekijken

Praktische interactieve oefening

Zet theorie om in actie met een van onze interactieve oefeningen.

Begin met trainen