google_compute_region_disk

Get information about a Google Compute Regional Persistent disks.

the official documentation and its API.

Example Usage

data "google_compute_region_disk" "disk" {
  name                      = "persistent-regional-disk"
  project                   = "example"
  region                    = "us-central1"
  type                      = "pd-ssd"
  physical_block_size_bytes = 4096

  replica_zones = ["us-central1-a", "us-central1-f"]
}

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

  attached_disk {
    source = data.google_compute_disk.disk.self_link
  }
}

Argument Reference

The following arguments are supported:


Attributes Reference

See google_compute_region_disk resource for details of the available attributes.