yandex_cm_certificate_content (Data Source)
Written by
Updated at September 11, 2025
Get content (certificate, private key) from a Yandex Certificate Manager Certificate. For more information, see the official documentation.
Warning
One of certificate_id or name should be specified.
Example usage
//
// Get CM Certificate payload. Can be used for Certificate Validation.
//
data "yandex_cm_certificate_content" "example_by_id" {
certificate_id = "certificate-id"
}
data "yandex_cm_certificate_content" "example_by_name" {
folder_id = "folder-id"
name = "example"
}
Schema
Optional
certificate_id(String) Certificate Id.folder_id(String) The folder identifier that resource belongs to. If it is not provided, the default providerfolder-idis used.name(String) Certificate name.private_key_format(String) Format in which you want to export the private_key:"PKCS1"or"PKCS8".wait_validation(Boolean) Iftrue, the operation won't be completed while the certificate is inVALIDATING. Default isfalse.
Read-Only
certificates(List of String) List of certificates in chain.id(String) The ID of this resource.private_key(String, Sensitive) Private key in specified format.