Skip to content

Commit ae6de8b

Browse files
authored
Add labels to google_compute_disk (hashicorp#344)
* Remove redundant '(Computed)' text * Add support for setting labels on compute_disk * Fix minor spacing issue in test
1 parent a209a30 commit ae6de8b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/r/compute_disk.html.markdown

+8-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ resource "google_compute_disk" "default" {
2424
type = "pd-ssd"
2525
zone = "us-central1-a"
2626
image = "debian-8-jessie-v20170523"
27+
labels {
28+
environment = "dev"
29+
}
2730
}
2831
```
2932

@@ -57,6 +60,8 @@ The following arguments are supported:
5760

5861
* `type` - (Optional) The GCE disk type.
5962

63+
* `labels` - (Optional) A set of key/value label pairs to assign to the image.
64+
6065
## Attributes Reference
6166

6267
In addition to the arguments listed above, the following computed attributes are
@@ -69,7 +74,9 @@ exported:
6974

7075
* `self_link` - The URI of the created resource.
7176

72-
* `users` - (Computed) The Users of the created resource.
77+
* `users` - The Users of the created resource.
78+
79+
* `label_fingerprint` - The fingerprint of the assigned labels.
7380

7481
## Import
7582

0 commit comments

Comments
 (0)