github.com/chalford/terraform@v0.3.7-0.20150113080010-a78c69a8c81f/website/source/docs/providers/google/r/compute_disk.html.markdown (about) 1 --- 2 layout: "google" 3 page_title: "Google: google_compute_disk" 4 sidebar_current: "docs-google-resource-disk" 5 description: |- 6 Creates a new persistent disk within GCE, based on another disk. 7 --- 8 9 # google\_compute\_disk 10 11 Creates a new persistent disk within GCE, based on another disk. 12 13 ## Example Usage 14 15 ``` 16 resource "google_compute_disk" "default" { 17 name = "test-disk" 18 type = "pd-ssd" 19 zone = "us-central1-a" 20 image = "debian7-wheezy" 21 } 22 ``` 23 24 ## Argument Reference 25 26 The following arguments are supported: 27 28 * `name` - (Required) A unique name for the resource, required by GCE. 29 Changing this forces a new resource to be created. 30 31 * `zone` - (Required) The zone where this disk will be available. 32 33 * `image` - (Optional) The machine image to base this disk off of. 34 35 * `size` - (Optional) The size of the image in gigabytes. If not specified, 36 it will inherit the size of its base image. 37 38 * `type` - (Optional) The GCE disk type. 39 40 ## Attributes Reference 41 42 The following attributes are exported: 43 44 * `name` - The name of the resource. 45 * `zone` - The zone where the resource is located. 46 * `image` - The name of the image the disk is based off of. 47 * `size` - The size of the disk in gigabytes.