In this tutorial, you use the console to create a Lambda function and configure a trigger for Amazon Simple Storage Service (Amazon S3). The trigger invokes your function every time that you add an object to your Amazon S3 bucket.
https://docs.aws.amazon.com/lambda/latest/dg/with-s3-example.html

