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:
- Receives a PUT request event from the S3 service
- Prints the name of the file and other major details
- 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:
- Firstly, we need to create two S3 buckets for the task. One will be the bucket where the file will be uploaded ...