Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Setting up Yandex Cloud Terraform provider authentication
  • Solution library
    • Overview
    • Release notes
          • cm_certificate
          • cm_certificate_content

In this article:

  • Example usage
  • Arguments & Attributes Reference
  1. Terraform reference
  2. Resources
  3. Certificate Manager
  4. Data Sources
  5. cm_certificate_content

yandex_cm_certificate_content (DataSource)

Written by
Yandex Cloud
Updated at February 9, 2026
View in Markdown
  • Example usage
  • Arguments & Attributes Reference

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 usageExample 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"
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • certificate_id (String). Certificate Id.
  • certificates (Read-Only) (List Of String). List of certificates in chain.
  • folder_id (String). The folder identifier that resource belongs to. If it is not provided, the default provider folder-id is used.
  • id (String).
  • name (String). Certificate name.
  • private_key (Read-Only) (String). Private key in specified format.
  • private_key_format (String). Format in which you want to export the private_key: "PKCS1" or "PKCS8".
  • wait_validation (Bool). If true, the operation won't be completed while the certificate is in VALIDATING. Default is false.

Was the article helpful?

Previous
cm_certificate
Next
cm_certificate
© 2026 Direct Cursus Technology L.L.C.