terraform-provider-google/website/docs/r/pubsub_topic.html.markdown
Vincent Roseberry 42cc44efe2
Add IAM support for pubsub topic (#875)
* Add IAM support for pubsub topic

* Fix resource name

* Add update test for iam_policy resource

* Standardize policy conversion function

* Standardize policy conversion function all resources
2017-12-19 17:19:04 -08:00

1.1 KiB

layout page_title sidebar_current description
google Google: google_pubsub_topic docs-google-pubsub-topic-x Creates a topic in Google's pubsub queueing system

google_pubsub_topic

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

Example Usage

resource "google_pubsub_topic" "default" {
  name = "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.

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

Attributes Reference

Only the arguments listed above are exposed as attributes.

Import

Pubsub topics can be imported using the name, e.g.

$ terraform import google_pubsub_topic.mytopic mytopic