Configure subscriptions - 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.

Configure subscriptions

In this step, you create a subscription that enables the GG_TrafficLight shadow to send updated state information to the GG_Car_Aggregator Lambda function. This subscription is added to the subscriptions that you created in Module 5, which are all required for this module.

  1. On the group configuration page, choose the Subscriptions tab, and then choose Add.

  2. On the Create a subscription page, do the following:

    1. For Source type, choose Service, and then choose Local Shadow Service.

    2. For Target type, choose Lambda function, and then choose GG_Car_Aggregator.

    3. For Topic filter, enter $aws/things/GG_TrafficLight/shadow/update/documents

    4. Choose Create subscription.

    This module requires the new subscription and the subscriptions that you created in Module 5.

  3. Make sure that the Greengrass daemon is running, as described in Deploy cloud configurations to a core device.

  4. On the group configuration page, choose Deploy.