Book Image

Learning AWS IoT

By : Agus Kurniawan
Book Image

Learning AWS IoT

By: Agus Kurniawan

Overview of this book

The Internet of Things market increased a lot in the past few years and IoT development and its adoption have showed an upward trend. Analysis and predictions say that Enterprise IoT platforms are the future of IoT. AWS IoT is currently leading the market with its wide range of device support SDKs and versatile management console. This book initially introduces you to the IoT platforms, and how it makes our IoT development easy. It then covers the complete AWS IoT Suite and how it can be used to develop secure communication between internet-connected things such as sensors, actuators, embedded devices, smart applications, and so on. The book also covers the various modules of AWS: AWS Greengrass, AWS device SDKs, AWS IoT Platform, AWS Button, AWS Management consoles, AWS-related CLI, and API references, all with practical use cases. Near the end, the book supplies security-related best practices to make bi-directional communication more secure. When you've finished this book, you'll be up-and-running with the AWS IoT Suite, and building IoT projects.
Table of Contents (14 chapters)
Title Page
Packt Upsell
Contributors
Preface
Index

Building IoT projects with AWS Greengrass


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:

  1. Prepare libraries on AWS Greengrass Core
  2. Create AWS Lambda
  3. Deploy AWS Lambda to AWS Greengrass
  4. Test

Each task will be explained in the following sections.

Preparing runtime libraries on AWS Greengrass Core

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...