rso_secret (Resource)¶
A secret in the tenant's namespace, for the tenant's workloads to mount or read as environment variables.
Changing data replaces the secret's content in place; workloads that read it keep the old values until their next revision. Destroying it is refused by the platform while an app still refers to it.
~> Only secrets made through the console, the API or this provider can be managed. Requires a platform release with updateSecret and deleteSecret.
Example Usage¶
resource "rso_secret" "app" {
name = "app"
data = {
DATABASE_PASSWORD = var.database_password
}
}
Schema¶
Required¶
data(Map of String, Sensitive) Key/value pairs, in plain text (the platform encodes them). The complete content: a key removed here is removed from the secret. Values are never read back.name(String) Secret name, unique within the tenant.
Read-Only¶
id(String) The ID of this resource.type(String) Kubernetes secret type,Opaquefor secrets made here.