Google Cloud Pub/Sub Lite Topic

This page shows how to write Terraform for Cloud Pub/Sub Lite Topic and write them securely.

google_pubsub_lite_topic (Terraform)

The Lite Topic in Cloud Pub/Sub can be configured in Terraform with the resource name google_pubsub_lite_topic. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Review your Terraform file for Google best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

  • id optional computed - string
  • name required - string

Name of the topic.

The region of the pubsub lite topic.

The zone of the pubsub lite topic.

  • partition_config list block

    The number of partitions in the topic. Must be at least 1.

  • retention_config list block

    The provisioned storage, in bytes, per partition. If the number of bytes stored in any of the topic's partitions grows beyond this value, older messages will be dropped to make room for newer ones, regardless of the value of period.

    How long a published message is retained. If unset, messages will be retained as long as the bytes retained for each partition is below perPartitionBytes.

  • timeouts single block

Explanation in Terraform Registry

A named resource to which messages are sent by publishers. To get more information about Topic, see:

Frequently asked questions

What is Google Cloud Pub/Sub Lite Topic?

Google Cloud Pub/Sub Lite Topic is a resource for Cloud Pub/Sub of Google Cloud Platform. Settings can be wrote in Terraform.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.