AWS IoT Greengrass
Developer Guide

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 Subscriptions, and then choose Add Subscription.

  2. On the Select your source and target page, set the following values:

    • For Select a source, choose Services, and then choose Local Shadow Service.

    • For Select a target, choose Lambdas, and then choose GG_Car_Aggregator.

    Choose Next.

    
                            The Select your source and target page with source set to
                                Local Shadow Service and target set to the GG_Car_Aggregator Lambda
                                function.
  3. On the Filter your data with a topic page, for Topic filter, enter the following topic:

    $aws/things/GG_TrafficLight/shadow/update/documents

    
                            Topic filter field set to
                                $aws/things/GG_TrafficLight/shadow/update/documents.
  4. Choose Next, and then choose Finish.

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

  5. Make sure that the AWS IoT Greengrass daemon is running, as described in Deploy Cloud Configurations to a Core Device.

  6. On the group configuration page, from Actions, choose Deploy to deploy the group configuration to your AWS IoT Greengrass core device.

    
                Screenshot of the Group page with the Deploy action 
                    highlighted.

    For troubleshooting help, see Troubleshooting AWS IoT Greengrass.