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.
Parameters
Name of the topic.
The region of the pubsub lite topic.
-
zone
optional - string
The zone of the pubsub lite topic.
-
partition_config
list block-
count
required - number
The number of partitions in the topic. Must be at least 1.
-
capacity
list block-
publish_mib_per_sec
required - number
Subscribe throughput capacity per partition in MiB/s. Must be >= 4 and <= 16.
-
subscribe_mib_per_sec
required - number
Publish throughput capacity per partition in MiB/s. Must be >= 4 and <= 16.
-
-
-
retention_config
list block-
per_partition_bytes
required - string
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.
-
period
optional - string
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:
- API documentation
- How-to Guides