Download required files - 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 (PDF).

Amazon IoT Greengrass Version 1 entered the extended life phase on June 30, 2023. For more information, see the Amazon IoT Greengrass V1 maintenance policy. After this date, Amazon IoT Greengrass V1 won't release updates that provide features, enhancements, bug fixes, or security patches. Devices that run on Amazon IoT Greengrass V1 won't be disrupted and will continue to operate and to connect to the cloud. We strongly recommend that you migrate to Amazon IoT Greengrass Version 2, which adds significant new features and support for additional platforms.

Download required files

  1. If you haven't already done so, install the Amazon IoT Device SDK for Python. For instructions, see step 1 in Install the Amazon IoT Device SDK for Python.

    This SDK is used by client devices to communicate with Amazon IoT and with Amazon IoT Greengrass core devices.

  2. From the TrafficLight examples folder on GitHub, download the lightController.py and trafficLight.py files to your computer. Save them in the folder that contains the GG_Switch and GG_TrafficLight client device certificates and keys.

    The lightController.py script corresponds to the GG_Switch client device, and the trafficLight.py script corresponds to the GG_TrafficLight client device.

    Screenshot of files including the two Python scripts and the device certificates and keys.
    Note

    The example Python files are stored in the Amazon IoT Greengrass Core SDK for Python repository for convenience, but they don't use the Amazon IoT Greengrass Core SDK.