Skip to Main Content
AWS Lambda Quick Start Guide
book

AWS Lambda Quick Start Guide

by Markus Klems
June 2018
Intermediate to advanced content levelIntermediate to advanced
184 pages
3h 28m
English
Packt Publishing
Content preview from AWS Lambda Quick Start Guide

Lambda Function with S3 Event Input

Previously, we created a synchronous Lambda function that takes the string as input and returns the string as output. Now, we are going to create an asynchronous Lambda function that can be invoked through S3 events, and test the function with a dummy event that can upload a file to S3 and see if the function is triggered by the create-object event.

Open the project that we have created. Let's add a new Lambda function handler to the project. Click on the little orange box and select New AWS Lambda Function. We will create a new function handler name, S3FunctionHandler; use the default input type that is already selected, S3 Event; and as leave the output type as object:

Click on Finish. This will create ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering AWS Lambda

Mastering AWS Lambda

Yohan Wadia, Udita Gupta

Publisher Resources

ISBN: 9781789340198Supplemental Content