» google_compute_ssl_certificate

Get info about a Google Compute SSL Certificate from its name.

» Example Usage

data "google_compute_ssl_certificate" "my_cert" {
  name       = "my-cert"
  location   = "us-east1-a"
}

output "certificate" {
  value = "${data.google_compute_ssl_certificate.my_cert.certificate}"
}

output "certificate_id" {
  value = "${data.google_compute_ssl_certificate.my_cert.certificate_id}"
}

output "self_link" {
  value = "${data.google_compute_ssl_certificate.my_cert.self_link}"
}

» Argument Reference

The following arguments are supported:

  • name (Required) - The name of the certificate.

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

» Attributes Reference

See google_compute_ssl_certificate resource for details of the available attributes.