The Vault Secrets secret data source retrieves a singular secret and its latest version.
data "hcp_vault_secrets_secret" "example" {
app_name = "example-vault-secrets-app"
secret_name = "my_secret"
}
app_name
(String) The name of the Vault Secrets application.secret_name
(String) The name of the Vault Secrets secret.id
(String) The ID of this resource.organization_id
(String) The ID of the HCP organization where the Vault Secrets app is located.project_id
(String) The ID of the HCP project where the Vault Secrets app is located.secret_value
(String, Sensitive) The secret value corresponding to the secret name input.