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

In this article:

  • Example usage
  • Arguments & Attributes Reference
  1. Terraform reference
  2. Resources
  3. Lockbox
  4. Data Sources
  5. lockbox_secret

yandex_lockbox_secret (DataSource)

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

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
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • created_at (Read-Only) (String). The creation timestamp of the resource.
  • current_version (Read-Only) (List Of Object). Current secret version.
    • created_at .
    • description .
    • destroy_at .
    • id .
    • payload_entry_keys .
    • secret_id .
    • status .
  • deletion_protection (Read-Only) (Bool). The true value means that resource is protected from accidental deletion.
  • description (Read-Only) (String). The resource description.
  • folder_id (String). The folder identifier that resource belongs to. If it is not provided, the default provider folder-id is used.
  • id (String).
  • kms_key_id (Read-Only) (String). The KMS key used to encrypt the Yandex Cloud Lockbox secret.
  • labels (Read-Only) (Map Of String). A set of key/value label pairs which assigned to resource.
  • name (String). The resource name.
  • password_payload_specification (Read-Only) (List Of Object).
    • excluded_punctuation .
    • include_digits .
    • include_lowercase .
    • include_punctuation .
    • include_uppercase .
    • included_punctuation .
    • length .
    • password_key .
  • secret_id (String). The Yandex Cloud Lockbox secret ID.
  • status (Read-Only) (String). The Yandex Cloud Lockbox secret status.

Was the article helpful?

Previous
kubernetes_marketplace_helm_release
Next
lockbox_secret_version
© 2026 Direct Cursus Technology L.L.C.