github.com/bengesoff/terraform@v0.3.1-0.20141018223233-b25a53629922/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  ---
     6  
     7  # google\_compute\_disk
     8  
     9  Creates a new persistent disk within GCE, based on another disk.
    10  
    11  ## Example Usage
    12  
    13  ```
    14  resource "google_compute_disk" "default" {
    15  	name = "test-disk"
    16  	type = "pd-ssd"
    17  	zone = "us-central1-a"
    18  	image = "debian7-wheezy"
    19  }
    20  ```
    21  
    22  ## Argument Reference
    23  
    24  The following arguments are supported:
    25  
    26  * `name` - (Required) A unique name for the resource, required by GCE.
    27      Changing this forces a new resource to be created.
    28  
    29  * `zone` - (Required) The zone where this disk will be available.
    30  
    31  * `image` - (Optional) The machine image to base this disk off of.
    32  
    33  * `size` - (Optional) The size of the image in gigabytes. If not specified,
    34      it will inherit the size of its base image.
    35  
    36  * `type` - (Optional) The GCE disk type.
    37  
    38  ## Attributes Reference
    39  
    40  The following attributes are exported:
    41  
    42  * `name` - The name of the resource.
    43  * `zone` - The zone where the resource is located.
    44  * `image` - The name of the image the disk is based off of.
    45  * `size` - The size of the disk in gigabytes.