

终止支持通知：2026 年 10 月 7 日， Amazon 将停止对的支持。 Amazon IoT Greengrass Version 1 2026 年 10 月 7 日之后，您将无法再访问这些 Amazon IoT Greengrass V1 资源。如需了解更多信息，请访问[迁移自 Amazon IoT Greengrass Version 1](https://docs.amazonaws.cn/greengrass/v2/developerguide/migrate-from-v1.html)。

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 模块 3（第 2 部分）：开启 Lambda 函数 Amazon IoT Greengrass
<a name="module3-II"></a>

本模块探讨了在核心上运行的按需函数和长期运行的 Lambda 函数之间的区别。 Amazon IoT Greengrass 

在开始之前，请运行 [Greengrass 设备安装](quick-start.md) 脚本或确保您已完成[模块 1](module1.md)、[模块 2](module2.md)、和[模块 3（第 1 部分）](module3-I.md)。

本模块应该需要大约 30 分钟才能完成。

**Topics**
+ [创建和打包 Lambda 函数](package.md)
+ [为以下项配置长期存在的 Lambda 函数 Amazon IoT Greengrass](long-lived.md)
+ [测试长时间生存的 Lambda 函数](long-testing.md)
+ [按需测试 Lambda 函数](on-demand.md)