terraform/website/source/docs/providers/google/r/compute_snapshot.html.markdown

2.2 KiB

layout page_title sidebar_current description
google Google: google_compute_snapshot docs-google-compute-snapshot Creates a new snapshot of a disk within GCE.

google_compute_snapshot

Creates a new snapshot of a disk within GCE.

Example Usage

resource "google_compute_snapshot" "default" {
  name  = "test-snapshot"
  source_disk  = "test-disk"
  zone  = "us-central1-a"
}

Argument Reference

The following arguments are supported:

  • name - (Required) A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

  • zone - (Required) The zone where the source disk is located.

  • source_disk - (Required) The disk which will be used as the source of the snapshot.


Attributes Reference

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