ClearBlade IoT Core

Creating a Google Cloud service account key

A service account is required to migrate and run the IoT Core service. These instructions allow you to create a service account with the necessary permissions:

  1. Select your desired project area.

  2. Open the IAM & Admin Cloud services from the flyout menu.

    Screen Shot 2022-09-03 at 9.52.12 AM.png



  3. Select Service Accounts in the left menu.

    Screen Shot 2022-09-03 at 9.47.11 AM.png


  4. Click CREATE SERVICE ACCOUNT from the top menu bar.

    Screen Shot 2022-09-03 at 9.47.20 AM.png


  5. Complete the account details.

    1. Service Account Name: ClearBlade IoT Core Service Account

    2. Account description: This account is used by ClearBlade IoT Core service to flow MQTT-based device message data into the Google Pub/Sub offering. It additionally integrates with Cloud Logging and Cloud Monitoring services.

    3. Click CREATE AND CONTINUE.

  6. Screen Shot 2022-09-03 at 9.55.57 AM.png
  7. Grant these roles to the service account:

    1. Pub/Sub Editor:

      1. This role is needed to allow ClearBlade IoT Core to publish messages into Google Cloud Pub/Sub topics. This role is needed for normal operations.

      2. This role is needed to allow the ClearBlade IoT Core console to browse and create new topics in Google Pub/Sub to send events and status updates. This role is needed for normal operations.

    2. Logs Writer: This role is required for ClearBlade IoT Core to send data directly into the Google Cloud Logging service. This role is needed for normal operations.

    3. Monitoring Metric Writer: This role is required for ClearBlade IoT Core to send metrics into the Google Cloud Monitoring service. This role is needed for normal operations.

    4. Monitoring Viewer: This role is required for ClearBlade IoT Core to view metrics in the Google Cloud Monitoring service. This role is needed for normal operations.

  8. Click CONTINUE.

    image-20260805-225730.png


  9. Leave the field to grant users access to the service account blank.Click DONE to complete the service account creation.

    Screen Shot 2022-09-03 at 10.09.27 AM.png


  10. Select the newly created account by clicking the email hyperlink.

    Screen Shot 2022-09-03 at 10.10.51 AM.png


  11. On the Service Account Page, select KEYS from the top button bar.

    Screen Shot 2022-09-03 at 10.12.02 AM.png


  12. Click ADD KEY → Create new key.

    Screen Shot 2022-09-03 at 10.12.51 AM.png


  13. Choose JSON as the key type and click CREATE.

    Screen Shot 2022-09-03 at 10.13.36 AM.png


  14. A new .json key file is downloaded to your device.

    Screen Shot 2022-09-03 at 10.14.38 AM.png