MulaiMulai sekarang secara gratis

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!

Latihan ini adalah bagian dari kursus

Streaming Data with AWS Kinesis and Lambda

Lihat Kursus

Latihan interaktif praktis

Ubah teori menjadi tindakan dengan salah satu latihan interaktif kami.

Mulai berolahraga