With the suitable configuration for the Lambda function in place, we can now create the Lambda function itself. To do so, in the AWS console, navigate to https://console.aws.amazon.com/lambda/home and go through the following steps:
- Click on Create function.
- Set the function name to homeAutomation.
- Select the Python 3.6 runtime.
- Choose the lambda_home_automation role from the dropdown in the existing roles in the execution roles.
- Click on Create function.
- Copy the Lambda ARN from the next page that appears, which has a message of congratulations for creating the Lambda function. Put this ARN in the setup.txt of our local working directory in the [AWS Lambda ARN] field. At this point, the screen should resemble ...