streamtime_secret (Resource)

A secret stored by Streamtime. Its content is never shown in plans or logs.

Example Usage

resource "streamtime_secret" "db_password" {
  path    = "apps/db-password"
  content = var.db_password
}

variable "db_password" {
  type      = string
  sensitive = true
}

Schema

Required

  • content (String, Sensitive) The secret value.
  • path (String) Where the secret lives, for example apps/db-password. Changing it creates a new secret.

Optional

  • secret_provider (String) Where the secret is stored: builtin or vault. Leave it out to use the provider your installation has set as active. Changing it creates a new secret.

Read-Only

  • id (String) Secret ID. Use it to import an existing secret.
  • uri (String) Reference other resources use to read this secret.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# Import by the secret's ID. The secret value is not returned by Streamtime,
# so set `content` in your configuration and apply to write it.
terraform import streamtime_secret.db_password 6f1c2d3e-0000-4000-8000-000000000000