google_compute_disk_async_replication

Starts and stops asynchronous persistent disk replication. For more information see the official documentation and the API.

Example Usage

resource "google_compute_disk" "primary-disk" {
  name = "primary-disk"
  type = "pd-ssd"
  zone = "europe-west4-a"

  physical_block_size_bytes = 4096
}

resource "google_compute_disk" "secondary-disk" {
  name = "secondary-disk"
  type = "pd-ssd"
  zone = "europe-west3-a"

  async_primary_disk {
    disk = google_compute_disk.primary-disk.id
  }

  physical_block_size_bytes = 4096
}

resource "google_compute_disk_async_replication" "replication" {
  primary_disk = google_compute_disk.primary-disk.id
  secondary_disk {
    disk  = google_compute_disk.secondary-disk.id
  }
}

Argument Reference

The following arguments are supported:

The secondary_disk block includes: