github.com/adrian-bl/terraform@v0.7.0-rc2.0.20160705220747-de0a34fc3517/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-compute-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 ```js 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 - - - 34 35 * `image` - (Optional) The image from which to initialize this disk. Either the 36 full URL, a contraction of the form "project/name", or just a name (in which 37 case the current project is used). 38 39 * `project` - (Optional) The project in which the resource belongs. If it 40 is not provided, the provider project is used. 41 42 * `size` - (Optional) The size of the image in gigabytes. If not specified, it 43 will inherit the size of its base image. 44 45 * `snapshot` - (Optional) Name of snapshot from which to initialize this disk. 46 47 * `type` - (Optional) The GCE disk type. 48 49 ## Attributes Reference 50 51 In addition to the arguments listed above, the following computed attributes are 52 exported: 53 54 * `self_link` - The URI of the created resource.