Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • 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
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 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
  • Schema
  • Optional
  • Read-Only
  1. Terraform reference
  2. Resources
  3. Certificate Manager
  4. Data Sources
  5. cm_certificate_content

yandex_cm_certificate_content (Data Source)

Written by
Yandex Cloud
Updated at September 11, 2025
  • Example usage
  • Schema
    • Optional
    • Read-Only

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

SchemaSchema

OptionalOptional

  • certificate_id (String) Certificate Id.
  • folder_id (String) The folder identifier that resource belongs to. If it is not provided, the default provider folder-id is 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) If true, the operation won't be completed while the certificate is in VALIDATING. Default is false.

Read-OnlyRead-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.

Was the article helpful?

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