Create the S3 Processor Lambda

In this section you will create the Lambda function that will be triggered as soon as a new image is uploaded to the S3 bucket.

We need 4 steps to create the Lambda functionality:

  1. Create the Lambda execution IAM Role.

  2. Create the S3 Processor Lambda function.

  3. Configure an S3 trigger so that when a new image is uploaded to the S3 bucket the Lambda function will be triggered.

  4. Add a Lambda layer to the Lambda function in order to include the appropriate dependencies.

See below which part of the synchronous architecture you will create:

S3 processor