In this section, we will build a simple scenario to access AWS Greengrass. We will build an AWS Lambda application into AWS Greengrass. Then, we will access it from the client application. Our scenario is illustrated in the following figure:
To implement this demo, we will perform the following tasks:
- Prepare libraries on AWS Greengrass Core
- Create AWS Lambda
- Deploy AWS Lambda to AWS Greengrass
- Test
Each task will be explained in the following sections.
The first task to ensure our AWS Lambda runs well on AWS Greengrass Core is to prepare all requirement modules/libraries. In general, we can define three modules/libraries that should be installed on the AWS Greengrass Core machine. These modules/libraries are as follows:
- AWS IoT SDK
- AWS Greengrass SDK
- External modules/libraries
AWS IoT SDK and AWS Greengrass SDK should be installed on your AWS Greengrass Core machine. You can select a runtime platform, such...