Skip to content

Commit

Permalink
Labels added to Disk in Compute Instance (#6620) (#12689)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <magic-modules@google.com>

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician committed Sep 30, 2022
1 parent 301043d commit 7787e27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/6620.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none
compute: Updated documentation for `initialize_params` in `google_compute_instance`
```
6 changes: 6 additions & 0 deletions website/docs/r/compute_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ resource "google_compute_instance" "default" {
boot_disk {
initialize_params {
image = "debian-cloud/debian-11"
labels = {
my_label = "value"
}
}
}
Expand Down Expand Up @@ -231,6 +234,9 @@ is desired, you will need to modify your state file manually using
For instance, the image `centos-6-v20180104` includes its family name `centos-6`.
These images can be referred by family name here.

* `labels` - (Optional) A set of key/value label pairs assigned to the disk. This
field is only applicable for persistent disks.

<a name="nested_scratch_disk"></a>The `scratch_disk` block supports:

* `interface` - (Required) The disk interface to use for attaching this disk; either SCSI or NVME.
Expand Down

0 comments on commit 7787e27

Please sign in to comment.