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

Introducing AWS Lambda


AWS Lambda is one of the AWS services that provides a serverless compute to serve all the requests when executing your program. Currently, AWS Lambda for AWS Greengrass supports several program runtimes, such as Python, Node.js, and Java.

Implementing AWS Lambda into your IoT project can cut down on your infrastructure costs, especially, the cost of the server availability feature. You can focus on your problems and design your solution.

Note

For further information about AWS Lambda, I recommend that you read the official documentation from Amazon at http://docs.aws.amazon.com/lambda/latest/dg/welcome.html.

In this section, I will show you how to develop the AWS Lambda function and then invoke it. We will use the Python program to develop the AWS Lambda function and perform the following steps to implement our demo:

  1. Creating the AWS Lambda function
  2. Testing the AWS Lambda function
  3. Publishing the AWS Lambda function
  4. Configuring the AWS Lambda security
  5. Invoking the AWS Lambda...