Configure the Google Cloud Pub/Sub target
- Last UpdatedMay 21, 2024
- 1 minute read
Complete the procedure below to configure the Google Cloud Pub/Sub target and verify that you can write to the Google Cloud Pub/Sub resource.
Note: For more information on Google IAM roles and permissions, see https://cloud.google.com/iam/docs/understanding-roles and https://cloud.google.com/iam/docs/creating-custom-roles.
-
In the Google Cloud console, under IAM, give the GCP service account access to the Pub/Sub project. The minimum permissions on the project are:
-
pubsub.topics.list
-
pubsub.topics.publish
-
pubsub.topics.get
-
pubsub.topics.create
-
-
Alternatively, you can give the GCP service account the roles/pubsub.editor role which includes the minimum permissions.
-
Create the Google Cloud Pub/Sub target before you configure it. For more information, see Add a publish target.
-
On the Administration page, click the Targets tab. Then select the target in the Publish Targets list.
Note: If you have already selected your target, skip to the next step.
-
Refer to the following table and enter the required information. Click the buttons as they become enabled.
Parameter
Description
GCP Service Account Key File
JSON file that contains the GCP service account credentials
Project ID
Unique ID of the Pub/Sub project in the GCP console
Character Encoding
Character set in which data is encoded. Default: UTF-8. Other options are: ASCII, UTF-7, UTF-32, and Unicode.
Compression
(Optional) Compression type on message sets. Default : None. Other options are gzip and Snappy.
-
Click Verify Writer.
-
Click Save Changes.
-
Give users access to the Google Cloud Pub/Sub target. For more information, see Grant access to targets.