google_compute_disk

Get information about a Google Compute Persistent disks.

the official documentation and its API.

Example Usage

data "google_compute_disk" "persistent-boot-disk" {
  name    = "persistent-boot-disk"
  project = "example"
}

resource "google_compute_instance" "default" {
  # ...

  boot_disk {
    source = data.google_compute_disk.persistent-boot-disk.self_link
    auto_delete = false
  }
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported: