Configure Pub/Sub in Application Design Center

Pub/Sub is an asynchronous and scalable messaging service that decouples services producing messages from services processing those messages. For more information, see What is Pub/Sub?

This document describes the connections and parameters you can configure when using App Design Center to create a Pub/Sub topic and subscription. The configuration parameters are based on the terraform-google-pubsub Terraform module.

Component connections

The following table includes the components that you can connect to a Pub/Sub topic or subscription, and the resulting updates to your application and its generated Terraform code.

Connected component

Application updates

Background information

  • The Compute Engine instances can publish to and receive messages from the Pub/Sub topic.
  • The Pub/Sub topic ID is added to the Compute Engine instance template metadata.
  • The service account can manage Pub/Sub topics, and pull messages from subscriptions.
  • The roles/pubsub.editor role is added to the service account.
  • The service account name and email information is added to the Pub/Sub pull subscription.
  • The Pub/Sub subscription can write messages to the BigQuery dataset.
  • The BigQuery dataset information is added to the BigQuery subscription fields.
  • The Cloud Run service can receive messages or publish to the Pub/Sub topic.
  • The Pub/Sub topic ID is added to the Cloud Run environment variables.
  • The roles/pubsub.publisher and roles/pubsub.subscriber roles are added to the Cloud Run service account.
  • The Cloud Run service is added to the Pub/Sub push and pull subscription fields.
  • The Pub/Sub subscription can write messages to the Cloud Storage bucket.
  • The Cloud Storage bucket information is added to the Pub/Sub subscription fields.

Required configuration parameters

If your template includes a Pub/Sub component, you must configure the following parameters before you deploy.

Parameter name

Description and constraints

Background information

Project ID

The project where you want to deploy the Pub/Sub resource.

Configure components

Topic

name Guidelines to name a topic, subscription, schema, or snapshot

Optional configuration parameters

The following parameters are optional. To display advanced parameters, in the Configurationarea, select Show advanced fields.

Feature

Parameter name

Description and constraint information

Background information

Create Topic
By default, a topic is created. Clear the checkbox if you don't want to create a topic.
Create Subscriptions
By default, a subscription is created. Clear the checkbox if you don't want to create a subscription.
Push Endpoint
X-goog-version
The Pub/Sub API format of the pushed message. For example, v1beta1.
OIDC Service Account email
Max Delivery Attempts
Maximum Backoff
Minimum Backoff
Enable Message Ordering
Max Delivery Attempts
Maximum Backoff
Minimum Backoff
Enable Message Ordering
Service Account
Enable Exactly Once Delivery
Use Table Schema
Write Metadata
Enable Message Ordering
Maximum Backoff
Minimum Backoff
Max Duration
Max Messages
Output Format
Write Metadata
Use Topic Schema
Retain Acked Messages
Enable Message Ordering
Maximum Backoff
Minimum Backoff

Subscription Labels

Key
Grant BigQuery Project Roles
By default, the BigQuery Metadata Viewer and BigQuery Data Editor roles are granted to default Pub/Sub service account. If you don't want to grant these roles, clear the checkbox.
Grant Token Creator
By default, the Service Account Token Creator role is granted to default Pub/Sub service account. If you don't want to grant this role, clear the checkbox.
Create a Mobile Website
View Site in Mobile | Classic
Share by: