terraform/website/source/docs/providers/google/r/pubsub_subscription.html.ma...

1.1 KiB

layout page_title sidebar_current description
google Google: google_pubsub_subscription docs-google-pubsub-subscription Creates a subscription in Google's pubsub queueing system

google_pubsub_subscripion

Creates a subscription in Google's pubsub queueing system. For more information see the official documentation and API.

Example Usage

resource "google_pubsub_subscription" "default" {
	name = "default-subscription"
	topic = "default-topic"
}

Argument Reference

The following arguments are supported:

  • name - (Required) A unique name for the resource, required by pubsub. Changing this forces a new resource to be created.
  • topic - (Required) A topic to bind this subscription to, required by pubsub. Changing this forces a new resource to be created.

Attributes Reference

The following attributes are exported:

  • name - The name of the resource.
  • topic - The topic to bind this resource to.