S3 trigger

S3 is the AWS object storage service, where the user can store and retrieve any type of object. In this section, we shall be learning how the S3 trigger works, what the event structure of an S3 event looks like, and also how to make use of them in the learning to build a Lambda function.

We will be building a Lambda function that does the following:

  1. Receives a PUT request event from the S3 service
  2. Prints the name of the file and other major details
  3. Transfers that file to a different bucket

So, let's get started on learning how to use the S3 trigger efficiently. We will be working on this task step-by-step, as follows:

  1. Firstly, we need to create two S3 buckets for the task. One will be the bucket where the file will be uploaded ...

Get Building Serverless Applications with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.