We're left with the final piece of the setup—the code that provides the logic to the AWS Lambda function. Go to your Lambda function configuration page and scroll down to the editor.
You will notice that the editor has a two-column interface: the left column displays the files in the Lambda function storage and in the right column, you can edit those files, as shown in the following screenshot:
Click on lambda_function.py to begin editing the file and go through the following steps:
- Import the necessary modules. For the function to work, we will need the support of some common libraries, as shown ...