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.

Amazon IoT Greengrass Version 1 no longer receives feature updates, and will receive only security patches and bug fixes until June 30, 2023. For more information, see the Amazon IoT Greengrass V1 maintenance policy. 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 enable the HelloWorld_Publisher client device to send MQTT messages to the HelloWorld_Subscriber client device.

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

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

    1. For Source type, choose Client device, and then choose HelloWorld_Publisher.

    2. Under Target type, choose Client device, and then choose HelloWorld_Subscriber.

    3. For Topic filter, enter hello/world/pubsub.

      Note

      You can delete subscriptions from the previous modules. On the group's Subscriptions page, select the subscriptions to delete, and then choose Delete.

    4. Choose Create subscription.

  3. Make sure that automatic detection is enabled so the Greengrass core can publish a list of its IP addresses. Client devices use this information to discover the core. Do the following:

    1. On the group configuration page, choose the Lambda functions tab.

    2. Under System Lambda functions, choose IP detector, and then choose Edit.

    3. In the Edit IP detector settings, choose Automatically detect and override MQTT broker endpoints, and then choose Save.

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

  5. On the group configuration page, choose Deploy.

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