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
          • lockbox_secret
          • lockbox_secret_version

In this article:

  • Example usage
  • Schema
  • Optional
  • Read-Only
  • Nested Schema for current_version
  • Nested Schema for password_payload_specification
  1. Terraform reference
  2. Resources
  3. Lockbox (Secret Management)
  4. Data Sources
  5. lockbox_secret

yandex_lockbox_secret (Data Source)

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

Get information about Yandex Cloud Lockbox secret. For more information, see the official documentation.

Warning

One of secret_id or name should be specified.

Example usageExample usage

//
// Get information about existing Lockbox Secret.
//
data "yandex_lockbox_secret" "my_secret" {
  secret_id = "some ID"
}

output "my_secret_created_at" {
  value = data.yandex_lockbox_secret.my_secret.created_at
}

SchemaSchema

OptionalOptional

  • folder_id (String) The folder identifier that resource belongs to. If it is not provided, the default provider folder-id is used.
  • name (String) The resource name.
  • secret_id (String) The Yandex Cloud Lockbox secret ID.

Read-OnlyRead-Only

  • created_at (String) The creation timestamp of the resource.
  • current_version (List of Object) Current secret version. (see below for nested schema)
  • deletion_protection (Boolean) The true value means that resource is protected from accidental deletion.
  • description (String) The resource description.
  • id (String) The ID of this resource.
  • kms_key_id (String) The KMS key used to encrypt the Yandex Cloud Lockbox secret.
  • labels (Map of String) A set of key/value label pairs which assigned to resource.
  • password_payload_specification (List of Object) (see below for nested schema)
  • status (String) The Yandex Cloud Lockbox secret status.

Nested Schema for Nested Schema for current_version

Read-Only:

  • created_at (String)
  • description (String)
  • destroy_at (String)
  • id (String)
  • payload_entry_keys (List of String)
  • secret_id (String)
  • status (String)

Nested Schema for Nested Schema for password_payload_specification

Read-Only:

  • excluded_punctuation (String) String of punctuation characters to exclude from the default. Requires include_punctuation = true. Default is empty.

  • include_digits (Boolean) Use digits in the generated password. Default is true.

  • include_lowercase (Boolean) Use lowercase letters in the generated password. Default is true.

  • include_punctuation (Boolean) Use punctuations (!"#$%&'()*+,-./:;<=>?@[\]^_~`) in the generated password. Default is true.

  • include_uppercase (Boolean) Use capital letters in the generated password. Default is true.

  • included_punctuation (String) String of specific punctuation characters to use. Requires include_punctuation = true. Default is empty.

  • length (Number) Length of generated password. Default is 36.

  • password_key (String) The key with which the generated password will be placed in the secret version.

Was the article helpful?

Previous
loadtesting_agent
Next
lockbox_secret_version
© 2025 Direct Cursus Technology L.L.C.