Connect with Google's Cloud platform to have your IoT device and alert event data sent to a Storage bucket.

np_lightbulb_1247022_000000.png Please Note: The process shown in the video has been slightly updated. To enhance security, we now ask that you enter in a private key for a Google Cloud Storage service account with permissions to write to your storage bucket. The instructions below have been updated to cover this process.

Connecting to Google Cloud Storage

Use the following steps to setup the Google Cloud Storage Integration.

Get your Cloud Storage bucket & key

  1. Log into your Cloud Storage account.
  2. Locate the Bucket you'll be using:
    Go into your project and locate the bucket that you will use to store your IoT data. Make note of the bucket name as you will need it when creating the Integration.

    Google_Cloud_1.png
  3. Setup your Service Account Key:
    In this step we will setup an account key which will then be used by the Integration so that it can access your bucket.
    1. In the Cloud console and go to IAM & admin and select the Service accounts option.
      mceclip3.png
    2. Click on Create Service Account.
      mceclip4.png
    3. Give the account an appropriate Name and description. The Service account ID will be generated automatically for you during this step - you can leave it as the default.
      mceclip5.png

      np_right_610363_000000.png Click Create to create the service account and continue.
    4. On the Permissions screen that appears, give the account an appropriate permission (such as Storage Object Creator) so that it can access & create objects in cloud storage.
      mceclip6.png

      np_right_610363_000000.png Click Continue and then Done to complete creating the service account.
    5. Locate the Service account you created, click on the 3-dot menu and select Create Key.
      mceclip7.png
    6. In the popup that appears, you can leave it as JSON and click Create. This will download a json file containing the private key information that we need when setting up the integration.
      mceclip8.png
    7. Open the downloaded json file. You will need to copy the entire contents from this file when asked during integration setup.
      mceclip9.png

Create the Integration

  1. Log into your account on the IoT in a Box portal.
  2. Select the Integrations option and then select the Google Cloud Storage integration.
  3. Enter the following information to complete the integration:
    • Name: Enter a name for this integration. In case you have multiple integrations, this will help uniquely identify it in the list.
    • Bucket: Enter the name of your Storage bucket, as obtained above.
    • Service Account Key: Paste the entire contents of the service key file, as obtained above.
      np_lightbulb_1247022_000000.png Paste the entire contents of the json private key file here.
      mceclip1.png

np_right_610363_000000.png After saving the Integration, you will see it shown in your list of integrations.

Google_Cloud_3.png

  • You can then edit the integration to make any changes needed.
  • You can also toggle the Integration on/off at any time from here as well. Disabling the integration will stop new data from being sent to the Storage bucket.

Verifying things are working

You can verify the integration is working by logging into the Google Cloud Console and viewing the bucket records.

np_lightbulb_1247022_000000.png Note: Data is logged in reading and alert records, one for each new event. You can open each entry to find the event details, recorded in JSON format.

Google_Cloud_4.png

Google_Cloud_5.png