

End of support notice: On October 7th, 2026, Amazon will discontinue support for Amazon IoT Greengrass Version 1. After October 7th, 2026, you will no longer be able to access the Amazon IoT Greengrass V1 resources. For more information, please visit [Migrate from Amazon IoT Greengrass Version 1](https://docs.amazonaws.cn/greengrass/v2/developerguide/migrate-from-v1.html).

# Module 5: Interacting with device shadows
<a name="module5"></a>

This advanced module shows you how client devices can interact with [Amazon IoT device shadows](https://docs.amazonaws.cn/iot/latest/developerguide/iot-device-shadows.html) 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.\]](http://docs.amazonaws.cn/en_us/greengrass/v1/developerguide/images/gg-get-started-077.5.png)


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

This module should take about 30 minutes to complete.

**Topics**
+ [Configure devices and subscriptions](config-dev-subs.md)
+ [Download required files](file-download.md)
+ [Test communications (device syncs disabled)](comms-disabled.md)
+ [Test communications (device syncs enabled)](comms-enabled.md)