Skip to content

frostmoln_secret (Data Source)

Look up a secret by ID. Does not expose the secret value; use the frostmoln_secret resource for that.

Example Usage

terraform
data "frostmoln_secret" "example" {
  id = "secret-abc123"
}

output "secret_name" {
  value = data.frostmoln_secret.example.name
}

Schema

Required

  • id (String) The unique identifier of the secret.

Read-Only

  • content_type (String) The content type of the secret value.
  • created_at (String) The timestamp when the secret was created.
  • current_version (Number) The current version number of the secret.
  • description (String) A description of the secret.
  • max_versions (Number) The maximum number of versions retained.
  • name (String) The name of the secret.
  • recovery_window_days (Number) The number of days a deleted secret is retained before permanent removal.
  • status (String) The current status of the secret.
  • tags (Map of String) Tags for the secret.
  • updated_at (String) The timestamp when the secret was last updated.