Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • 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
  • 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.