Resource
dcloud_secrets_source
An external secret store (1Password Connect or HashiCorp Vault/OpenBao) that secrets are synced from. Deutsche Cloud checks the credential against the store before saving it; the credential is kept as a secret of its own (credential_secret_id). Deleting a source that secrets still sync from fails.
Example Usage
variable "vault_token" {
type = string
sensitive = true
}
# Deutsche Cloud checks the token against Vault before it saves the source.
resource "dcloud_secrets_source" "vault" {
name = "vault"
description = "Company Vault"
provider_type = "vault"
credential = var.vault_token
config = {
address = "https://vault.example.com:8200"
}
refresh_interval_minutes = 60
}Schema
Required
credential(String, Sensitive) The store's token. Never returned; a change replaces the stored credential in place. Never returned by the API: not read back, and empty after an import.name(String) The source’s name, 2 to 63 lower-case letters, digits and hyphens, unique in the organization (409 if taken). Its credential is stored as the secret SOURCE__TOKEN, which must not exist yet (409). 2 to 63 characters. Must match^[a-z0-9][a-z0-9-]*$.provider_type(String)onepassword(1Password Connect) orvault(HashiCorp Vault or OpenBao). One of:onepassword,vault. Changing it replaces the resource.
Optional
config(Map of String) Provider settings, e.g. Vault{ address = "https://vault.example.com:8200", mount = "secret" }.description(String) Free-text description, up to 256 characters. Up to 256 characters.key_id(String) The KMS key that encrypts the credential. Default: the organization's default key. Changing it replaces the resource.refresh_interval_minutes(Number) Minutes between scheduled syncs, 5 to 1440. Omitted: 60. From 5 to 1440.
Read-Only
credential_secret_id(String) The secret holding the credential.id(String) The resource's id.status(String)okorerror.status_message(String) What the last check said.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# The credential is never read back: set it in the configuration after an import.
terraform import dcloud_secrets_source.vault <source-id>Generated from the provider's schema.
Related