Create S3 Event Trigger

Time Estimate: 5 - 10 minutes

Invoking Lambda functions
You can invoke Lambda functions directly with the Lambda console, the Lambda API, the AWS SDK, the AWS CLI, and AWS toolkits. You can also configure other AWS services to invoke your function, or you can configure Lambda to read from a stream or queue and invoke your function.
For more information see: https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html

In this section you will configure S3 to invoke your Lambda function.

  1. We need to configure an S3 event trigger so that every time a new document gets uploaded in S3 so that our S3 Processor Lambda gets triggered.

  2. In the Lambda service click + Add trigger as shown below:

    Add Trigger S3
  3. Configure the S3 trigger as shown below. Make sure the right bucket is selected. Then click Add.

    Configure Trigger S3
  4. Click Save if required as shown below:

    Save Event