Google Cloud Pub/Sub Lite Reservation

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

google_pubsub_lite_reservation (Terraform)

The Lite Reservation in Cloud Pub/Sub can be configured in Terraform with the resource name google_pubsub_lite_reservation. 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

The following arguments are supported:

  • throughput_capacity - (Required) The reserved throughput capacity. Every unit of throughput capacity is equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed messages.

  • name - (Required) Name of the reservation.


  • region - (Optional) The region of the pubsub lite reservation.

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

In addition to the arguments listed above, the following computed attributes are exported:

  • id - an identifier for the resource with format projects/[[project]]/locations/[[region]]/reservations/[[name]]

Explanation in Terraform Registry

A named resource representing a shared pool of capacity. To get more information about Reservation, see:

Frequently asked questions

What is Google Cloud Pub/Sub Lite Reservation?

Google Cloud Pub/Sub Lite Reservation 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.