terraform-provider-google/r/compute_ssl_certificate.html.markdown
Seth Vargo 9da0d13c73 Update documentation to include new "project" attribute
This commit also normalizes the format we display attributes.
2016-04-10 17:34:15 -04:00

1.8 KiB

layout page_title sidebar_current description
google Google: google_compute_ssl_certificate docs-google-compute-ssl-certificate Creates an SSL certificate resource necessary for HTTPS load balancing in GCE.

google_compute_ssl_certificate

Creates an SSL certificate resource necessary for HTTPS load balancing in GCE. For more information see the official documentation and API.

Example Usage

resource "google_compute_ssl_certificate" "default" {
  name        = "my-certificate"
  description = "a description"
  private_key = "${file("path/to/private.key")}"
  certificate = "${file("path/to/certificate.crt")}"
}

Argument Reference

The following arguments are supported:

  • certificate - (Required) A local certificate file in PEM format. The chain may be at most 5 certs long, and must include at least one intermediate cert. Changing this forces a new resource to be created.

  • name - (Required) A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

  • private_key - (Required) Write only private key in PEM format. Changing this forces a new resource to be created.


  • description - (Optional) An optional description of this resource. Changing this forces a new resource to be created.

  • project - (Optional) The project in which the resource belongs. If it is not provided, the provider project is used.

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

  • id - A unique ID for the certificated, assigned by GCE.

  • self_link - The URI of the created resource.