Configure subscriptions - AWS IoT Greengrass

You are viewing the documentation for AWS IoT Greengrass Version 1. AWS IoT Greengrass Version 2 is the latest major version of AWS IoT Greengrass. For more information about using AWS IoT Greengrass V2, see the AWS IoT Greengrass Version 2 Developer Guide.

Configure subscriptions

In this step, you enable the HelloWorld_Publisher device to send MQTT messages to the HelloWorld_Subscriber device.

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

  2. Configure the subscription.

    • Under Select a source, choose Devices, and then choose HelloWorld_Publisher.

    • Under Select a target, choose Devices, and then choose HelloWorld_Subscriber.

    • Choose Next.


                            Screenshot of the Select your source and target page with
                                HelloWorld_Publisher, HelloWorld_Subscriber, and the Next button
  3. For Topic filter, enter hello/world/pubsub, choose Next, and then choose Finish.


    You can delete subscriptions from the previous modules. On the group's Subscriptions page, choose the ellipsis () associated with a subscription, and then choose Delete.

  4. Make sure that automatic detection is enabled so the Greengrass core can publish a list of its IP addresses. Devices use this information to discover the core.

    1. On the group configuration page, choose Settings.

    2. Under Core connectivity information, for Local connection detection, choose Automatically detect and override connection information.

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

  6. On the group configuration page, from Actions, choose Deploy.

                Screenshot of the Group page with the Deploy action 

    This deploys the group configuration to your AWS IoT Greengrass core device. For troubleshooting help, see Troubleshooting AWS IoT Greengrass.

The deployment status is displayed below the group name on the page header. To see deployment details, choose Deployments.