How it works...
In step 1, we have written a basic Python program to print Hello World, which will be our lambda function. We should note here that our program requires two parameters as arguments that provide useful information to our program. The context provides information about the platform to our function that can be used in our program for various use cases, such as memory information, the remaining time to execute, and so on, and the event is the object that provides information about the event that invoked our lambda function, which could be a list, str, dictionary or hash, or NoneType. Once we have our code ready, we will ZIP it and name our package myfirstzip.zip.
In step 2, we have created our lambda function with the name MyFirstLambda ...
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.
Read now
Unlock full access