Let's go through the pre-requisites of AWS Lambda as shown here:
import sys, osimport mylib...def handler(event, context): ... print("Hello world log") return result
It consists of the following steps:
- Importing libraries, which you have already installed on AWS Lambda. This includes system libraries and a number of AWS-specific libraries. You don't have to include these libraries within your package.
- Importing external libraries, from other developers and companies, or your own libraries. You need to include them in your package.
- Implementing handler function which handles processing of the requests to the main variables as input event and context. The event is trigger-specific information and context is information ...