Google Cloud Pub/Sub Lite Subscription

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

google_pubsub_lite_subscription (Terraform)

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


  • id optional computed - string
  • name required - string

Name of the subscription.

The region of the pubsub lite topic.

A reference to a Topic resource.

The zone of the pubsub lite topic.

  • delivery_config list block

    When this subscription should send messages to subscribers relative to messages persistence in storage. Possible values: ["DELIVER_IMMEDIATELY", "DELIVER_AFTER_STORED", "DELIVERY_REQUIREMENT_UNSPECIFIED"]

  • timeouts single block

Explanation in Terraform Registry

A named resource representing the stream of messages from a single, specific topic, to be delivered to the subscribing application. To get more information about Subscription, see:

Frequently asked questions

What is Google Cloud Pub/Sub Lite Subscription?

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


Automate config file reviews on your commits

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