In this step, you will deploy the AWS Lambda function as a custom component to communicate between the processes of the custom component and with the IoT Core in the cloud. The Greengrass 2.0 Lambda function allows you to specify local PubSub communication (interprocess communication) or IoT Core MQTT messages as the event source. This hands-on deploys an Lmabda function that triggers a message from the local publisher created in the previous step and sends a message to the cloud if the value exceeds the threshold. Also, in the previous step, you created and deployed the component on the device, but in this step, you will create the Lambda function and create and deploy the component on the cloud.
If you encounter any issues during the workshop, first see if you can find your solution in Troubleshooting section