Get info about a Google Compute SSL Certificate from its name.
data "google_compute_ssl_certificate" "my_cert" {
name = "my-cert"
}
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
}
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.See google_compute_ssl_certificate resource for details of the available attributes.