github.com/atsaki/terraform@v0.4.3-0.20150919165407-25bba5967654/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 image from which to initialize this disk.  Either the full URL, a
    34    contraction of the form "project/name", or just a name (in which case the current project is
    35  used).
    36  
    37  * `snapshot` - (Optional) Name of snapshot from which to initialize this disk;
    38  
    39  * `size` - (Optional) The size of the image in gigabytes. If not specified,
    40      it will inherit the size of its base image.
    41  
    42  * `type` - (Optional) The GCE disk type.
    43  
    44  ## Attributes Reference
    45  
    46  The following attributes are exported:
    47  
    48  * `name` - The name of the resource.
    49  * `zone` - The zone where the resource is located.
    50  * `image` - The name of the image the disk is based off of.
    51  * `size` - The size of the disk in gigabytes.