Creating AWS Lambda 

AWS Lambda is an AWS service to help you to build applications for a specific purpose. In this section, we will develop an AWS Lambda application. I will show how to develop AWS Lambda using Node.js.

Firstly, Node.js has to be installed on Raspberry Pi. Then, install AWS Greengrass Core SDK for Node.js. Based on the documentation, we should copy and paste node as nodejs6.10. You can do this with the following command:

$ sudo cp /usr/bin/node /usr/bin/nodejs6.10

Prepare the Lambda program sample from AWS Greengrass Core. You can find it at <greengrass_core_sdk_js>/samples/HELLOWORLD. Inside this folder, create the node_modules ...

Get Learning AWS IoT now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.