How to enable S3 event notification with Lambda

Amazon Lambda also supports to run custom code referred as Lambda function by directly inputting your code or uploading a compressed ZIP file of the code in order to run your application code. Amazon Lambda processes your Lambda functions in response to events, for example, the object-created events in S3 bucket, the DynamoDB table updates, or JSON inputs or HTTP commands from your application.

Note

AWS Lambda supports Java and Node.js. For more information, see http://aws.amazon.com/lambda/details/.

We will be creating a sample Node.js. S3 notifies an event to AWS Lambda and AWS Lambda invokes a Lambda function, which then creates a thumbnail and saves it to a target bucket when the objects (image ...

Get Amazon S3 Cookbook 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.