End of support notice: On October 7th, 2026, AWS will discontinue support for AWS IoT Greengrass Version 1. After October 7th, 2026, you will no longer be able to access the AWS IoT Greengrass V1 resources. For more information, please visit Migrate from AWS IoT Greengrass Version 1.
Download required files
-
If you haven't already done so, install the AWS IoT Device SDK for Python. For instructions, see step 1 in Install the AWS IoT Device SDK for Python.
This SDK is used by client devices to communicate with AWS IoT and with AWS IoT Greengrass core devices.
-
From the TrafficLight
examples folder on GitHub, download the lightController.pyandtrafficLight.pyfiles to your computer. Save them in the folder that contains the GG_Switch and GG_TrafficLight client device certificates and keys.The
lightController.pyscript corresponds to the GG_Switch client device, and thetrafficLight.pyscript corresponds to the GG_TrafficLight client device.
Note
The example Python files are stored in the AWS IoT Greengrass Core SDK for Python repository for convenience, but they don't use the AWS IoT Greengrass Core SDK.