github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/google/r/compute_snapshot.html.markdown (about)

     1  ---
     2  layout: "google"
     3  page_title: "Google: google_compute_snapshot"
     4  sidebar_current: "docs-google-compute-snapshot"
     5  description: |-
     6    Creates a new snapshot of a disk within GCE.
     7  ---
     8  
     9  # google\_compute\_snapshot
    10  
    11  Creates a new snapshot of a disk within GCE.
    12  
    13  ## Example Usage
    14  
    15  ```js
    16  resource "google_compute_snapshot" "default" {
    17    name  = "test-snapshot"
    18    source_disk  = "test-disk"
    19    zone  = "us-central1-a"
    20  }
    21  ```
    22  
    23  ## Argument Reference
    24  
    25  The following arguments are supported:
    26  
    27  * `name` - (Required) A unique name for the resource, required by GCE.
    28      Changing this forces a new resource to be created.
    29  
    30  * `zone` - (Required) The zone where the source disk is located.
    31  
    32  * `source_disk` - (Required) The disk which will be used as the source of the snapshot.
    33  
    34  - - -
    35  
    36  * `source_disk_encryption_key_raw` - (Optional) A 256-bit [customer-supplied encryption key]
    37      (https://cloud.google.com/compute/docs/disks/customer-supplied-encryption),
    38      encoded in [RFC 4648 base64](https://tools.ietf.org/html/rfc4648#section-4)
    39      to decrypt the source disk.
    40  
    41  * `snapshot_encryption_key_raw` - (Optional) A 256-bit [customer-supplied encryption key]
    42      (https://cloud.google.com/compute/docs/disks/customer-supplied-encryption),
    43      encoded in [RFC 4648 base64](https://tools.ietf.org/html/rfc4648#section-4)
    44      to encrypt this snapshot.
    45  
    46  * `project` - (Optional) The project in which the resource belongs. If it
    47      is not provided, the provider project is used.
    48  
    49  ## Attributes Reference
    50  
    51  In addition to the arguments listed above, the following computed attributes are
    52  exported:
    53  
    54  * `snapshot_encryption_key_sha256` - The [RFC 4648 base64]
    55      (https://tools.ietf.org/html/rfc4648#section-4) encoded SHA-256 hash of the
    56      [customer-supplied encryption key](https://cloud.google.com/compute/docs/disks/customer-supplied-encryption)
    57      that protects this resource.
    58  
    59  * `source_disk_encryption_key_sha256` - The [RFC 4648 base64]
    60      (https://tools.ietf.org/html/rfc4648#section-4) encoded SHA-256 hash of the
    61      [customer-supplied encryption key](https://cloud.google.com/compute/docs/disks/customer-supplied-encryption)
    62      that protects the source disk.
    63  
    64  * `source_disk_link` - The URI of the source disk.
    65  
    66  * `self_link` - The URI of the created resource.