We will follow these steps to upload the Lambda function:
- Right-click in in the code window and then choose AWS Lambda. Then, choose the Upload function to AWS Lambda menu option.
- In the Upload function to AWS Lambda window, select an appropriate region and enter CurrentTemperatureFunction as the name of the Lambda function.
- Select the Next button. The following window will appear, as shown in this screenshot:

- Select the Create button in the Function Role section:

- Ensure that the Role Name is lambda_basic execution and then ...