Skip to main content

GCP Pub Sub Topic

A Google Cloud Pub/Sub Topic is a named resource to which publishers send messages so that they can later be delivered to subscribers. It acts as the entry point of a Pub/Sub messaging pipeline, enabling decoupled, asynchronous communication between services and applications. Topics can be regional or global, support ordering, dead-letter policies, message retention and can optionally be protected with customer-managed encryption keys (CMEK).
For full details, see the official Google Cloud documentation: https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics#Topic.

Terrafrom Mappings:

  • google_pubsub_topic.name

Supported Methods​

  • GET: Get a gcp-pub-sub-topic by its "name"
  • LIST: List all gcp-pub-sub-topic
  • SEARCH

gcp-cloud-kms-crypto-key​

A Pub/Sub topic may be configured to use a customer-managed Cloud KMS Crypto Key for server-side encryption. When such CMEK protection is enabled, the topic stores the full resource name of the associated gcp-cloud-kms-crypto-key.

gcp-storage-bucket​

Google Cloud Storage buckets can emit object-change notifications to Pub/Sub. In that configuration, the bucket references the destination Pub/Sub topic to which it will publish event messages.