Module 3 (part 1): Lambda functions on Amazon IoT Greengrass - Amazon IoT Greengrass
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Amazon IoT Greengrass Version 1 no longer receives feature updates, and will receive only security patches and bug fixes until June 30, 2023. For more information, see the Amazon IoT Greengrass V1 maintenance policy. We strongly recommend that you migrate to Amazon IoT Greengrass Version 2, which adds significant new features and support for additional platforms.

Module 3 (part 1): Lambda functions on Amazon IoT Greengrass

This module shows you how to create and deploy a Lambda function that sends MQTT messages from your Amazon IoT Greengrass core device. The module describes Lambda function configurations, subscriptions used to allow MQTT messaging, and deployments to a core device.

Module 3 (Part 2) covers the differences between on-demand and long-lived Lambda functions running on the Amazon IoT Greengrass core.

Before you begin, make sure that you have completed Module 1 and Module 2 and have a running Amazon IoT Greengrass core device.


Or, to use a script that sets up your core device for you, see Quick start: Greengrass device setup. The script can also create and deploy the Lambda function used in this module.

This module should take about 30 minutes to complete.