Skip to content

Commit

Permalink
Pubsub subscription read state from API and import support (GoogleClo…
Browse files Browse the repository at this point in the history
  • Loading branch information
rosbo authored Sep 26, 2017
1 parent b7d02dc commit ced1806
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/r/pubsub_subscription.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: |-

Creates a subscription in Google's pubsub queueing system. For more information see
[the official documentation](https://cloud.google.com/pubsub/docs) and
[API](https://cloud.google.com/pubsub/reference/rest/v1/projects.subscriptions).
[API](https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions).


## Example Usage
Expand Down Expand Up @@ -56,7 +56,7 @@ The following arguments are supported:

The optional `push_config` block supports:

* `push_endpoint` - (Optional) The URL of the endpoint to which messages should
* `push_endpoint` - (Required) The URL of the endpoint to which messages should
be pushed. Changing this forces a new resource to be created.

* `attributes` - (Optional) Key-value pairs of API supported attributes used
Expand All @@ -69,3 +69,12 @@ The optional `push_config` block supports:
## Attributes Reference

* `path` - Path of the subscription in the format `projects/{project}/subscriptions/{sub}`

## Import

Pubsub subscription can be imported using the `name`, e.g.

```
$ terraform import google_pubsub_subscription.default default-subscription
```

0 comments on commit ced1806

Please sign in to comment.