github.com/jmbataller/terraform@v0.6.8-0.20151125192640-b7a12e3a580c/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  ```
    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  * `name` - (Required) A unique name for the resource, required by GCE.
    33      Changing this forces a new resource to be created.
    34  * `description` - (Optional) An optional description of this resource.
    35      Changing this forces a new resource to be created.
    36  * `private_key` - (Required) Write only private key in PEM format.
    37      Changing this forces a new resource to be created.
    38  * `certificate` - (Required) A local certificate file in PEM format. The chain
    39      may be at most 5 certs long, and must include at least one intermediate cert.
    40      Changing this forces a new resource to be created.
    41  
    42  ## Attributes Reference
    43  
    44  The following attributes are exported:
    45  
    46  * `self_link` - The URI of the created resource.
    47  * `id` - A unique ID assigned by GCE.