github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/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 ```hcl 20 resource "google_compute_ssl_certificate" "default" { 21 name_prefix = "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 * `private_key` - (Required) Write only private key in PEM format. 37 Changing this forces a new resource to be created. 38 39 - - - 40 41 * `name` - (Optional) A unique name for the SSL certificate. If you leave 42 this blank, Terraform will auto-generate a unique name. 43 44 * `name_prefix` - (Optional) Creates a unique name beginning with the specified 45 prefix. Conflicts with `name`. 46 47 * `description` - (Optional) An optional description of this resource. 48 Changing this forces a new resource to be created. 49 50 * `project` - (Optional) The project in which the resource belongs. If it 51 is not provided, the provider project is used. 52 53 ## Attributes Reference 54 55 In addition to the arguments listed above, the following computed attributes are 56 exported: 57 58 * `id` - A unique ID for the certificated, assigned by GCE. 59 60 * `self_link` - The URI of the created resource.