Google Cloud Pub/Sub

Download 48
Last updated Aug 5, 2023

Install Guide

Create GCP Project and Service Account

Create a new project in the Google Cloud Console. The Project ID displayed on the project creation screen will be required in later steps, so make sure to copy it. If you skip this step, you can retrieve it later from the project list.

Create GCP Project

Navigate to the Service Accounts menu under IAM & Admin and click the Create Service Account button.

Create service account

Enter logpresso as the service account name.

Service account name

Assign the Pub/Sub Subscriber role to the service account. If Logpresso will also perform publishing, add the Pub/Sub Publisher role as well.

Assign role

Skip the step for granting users access to the service account.

Grant user access

Create JSON key file

We need to issue a key for the service account created in the previous step, so click the service account's email.

Service account

Navigate to the Keys tab at the top, and click the Add key button to issue a key.

Add service account key

In the dialog box, select the JSON type and click the Create button to download the key file.

Create service account JSON key

Create Pub/Sub topic

Go to the Topics menu in Pub/Sub, and click the Create Topic button.

Pub/Sub topics

Enter demo in the Topic ID field, and click the Create button to create it.

Create Pub/Sub topic

Firewall settings

You need to add firewall policies to allow outbound access from Logpresso to the following three domains:

  • pubsub.googleapis.com
  • type.googleapis.com
  • pubsub-content.googleapis.com
  • oauth2.googleapis.com

Set up the connect profile

Add the Pub/Sub profile.

Set up Pub/Sub connect profile

  • Project ID: Paste the project ID you copied in the first step of creating the project.
  • JSON key: Copy and paste the entire contents of your service account's key file.

Now you're all set!