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.editorrole 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.publisherandroles/pubsub.subscriberroles 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

