github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/website/source/docs/providers/google/r/compute_ssl_certificate.html.markdown (about)

     1  ---
     2  layout: "google"
     3  page_title: "Google: google_compute_ssl_certificate"
     4  sidebar_current: "docs-google-compute-ssl-certificate"
     5  description: |-
     6    Creates an SSL certificate resource necessary for HTTPS load balancing in GCE.
     7  ---
     8  
     9  # google\_compute\_ssl\_certificate
    10  
    11  Creates an SSL certificate resource necessary for HTTPS load balancing in GCE.
    12  For more information see
    13  [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/ssl-certificates) and
    14  [API](https://cloud.google.com/compute/docs/reference/latest/sslCertificates).
    15  
    16  
    17  ## Example Usage
    18  
    19  ```js
    20  resource "google_compute_ssl_certificate" "default" {
    21    name        = "my-certificate"
    22    description = "a description"
    23    private_key = "${file("path/to/private.key")}"
    24    certificate = "${file("path/to/certificate.crt")}"
    25  }
    26  ```
    27  
    28  ## Argument Reference
    29  
    30  The following arguments are supported:
    31  
    32  * `certificate` - (Required) A local certificate file in PEM format. The chain
    33      may be at most 5 certs long, and must include at least one intermediate
    34      cert. Changing this forces a new resource to be created.
    35  
    36  * `name` - (Required) A unique name for the resource, required by GCE.
    37      Changing this forces a new resource to be created.
    38  
    39  * `private_key` - (Required) Write only private key in PEM format.
    40      Changing this forces a new resource to be created.
    41  
    42  - - -
    43  
    44  * `description` - (Optional) An optional description of this resource.
    45      Changing this forces a new resource to be created.
    46  
    47  * `project` - (Optional) The project in which the resource belongs. If it
    48      is not provided, the provider project is used.
    49  
    50  ## Attributes Reference
    51  
    52  In addition to the arguments listed above, the following computed attributes are
    53  exported:
    54  
    55  * `id` - A unique ID for the certificated, assigned by GCE.
    56  
    57  * `self_link` - The URI of the created resource.