1 Resources config_import
Forgejo Actions edited this page 2026-11-26 06:34:52 +00:00

openwebui_config_import (Resource)

Applies Open WebUI configuration keys from a JSON object. This is a singleton resource.

Open WebUI v0.11.0 stores configuration one key per row and merges an import into it, so config_json may hold as few keys as you want to manage. Terraform tracks only the keys config_json names; every other key is left as the server has it, and never enters state.

Keys are flat and dotted, such as ui.banners and audio.stt.engine. Open WebUI v0.9.x exported a nested tree instead, so a config_json captured from v0.9.x writes rows named ui and code_execution that nothing reads. The provider rejects that shape.

~> Warning: config_json may contain secrets. Treat the Terraform state for this resource as sensitive.

Example Usage

data "openwebui_config_export" "current" {}

resource "openwebui_config_import" "restore" {
  config_json = data.openwebui_config_export.current.config_json
}

Schema

Required

  • config_json (String, Sensitive) Open WebUI configuration keys to apply, as a JSON object of flat dotted keys. The openwebui_config_export data source produces the full set.

Read-Only

  • id (String) Identifier of this singleton resource. Always config_import.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# The resource records the last configuration import, so it is a singleton.
# Import it under its fixed id. State comes back holding the whole exported
# configuration, not the subset the configuration names, so trim config_json to
# the keys you manage before the next apply.
terraform import openwebui_config_import.restore config_import