Module 5: Interacting with device shadows - 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.

Module 5: Interacting with device shadows

This advanced module shows you how client devices can interact with Amazon IoT device shadows in an Amazon IoT Greengrass group. A shadow is a JSON document that is used to store current or desired state information for a thing. In this module, you discover how one client device (GG_Switch) can modify the state of another client device (GG_TrafficLight) and how these states can be synced to the Amazon IoT Greengrass cloud:


                Amazon IoT Greengrass core is connected to a traffic light device shadow and a light switch
                    device.

Before you begin, run the Greengrass device setup script, or make sure that you have completed Module 1 and Module 2. You should also understand how to connect client devices to an Amazon IoT Greengrass core (Module 4). You do not need other components or devices.

This module should take about 30 minutes to complete.