In general, we can deploy AWS Lambda with AWS Greengrass graphically and through command lines. In the previous section, we created the AWS Lambda function. In this section, will will deploy AWS Lambda with AWS Greengrass on Raspberry Pi 3.
You have learned how to deploy AWS Greengrass on Raspberry Pi in Chapter 3, Optimizing IoT Computing Using AWS Greengrass. Please follow the instructions in that chapter to deploy AWS Greengrass Core on Raspberry Pi.
To deploy the AWS Lambda function to AWS Greengrass Core, you should publish the AWS Lambda function and then deploy it into AWS Greengrass Group:
- From AWS Greengrass Group, you can add the existing Lambda function that we have already created. You just select your Lambda and its version and click on Next. Then, select on-demand function for the Lambda life cycle...