operator import
The operator import
command imports secrets from external systems in to Vault.
Secrets with the same name at the same storage path will be overwritten upon import.
This is potentially a long-running process as the importer can be configured to read as many secrets as the import plan specified and from multiple external systems.
Examples
Execute an import config file named import.hcl to generate an import plan:
Output:
Configuration
The operator import
command uses a dedicated configuration file to specify the source,
destination, and mapping rules.
Usage
The following flags are available for the operator import
command.
-config
(string: <required>)
- Path to the import configuration HCL file.auto-approve
(bool: <false>)
- Automatically skips the user-input requirement of "yes" when running the "apply" command.auto-create
(bool: <false>)
- Automatically creates any missing namespaces and mounts when "running the "apply" command.-log-level
(string: "info")
- Log verbosity level. Supported values (in order of descending detail) aretrace
,debug
,info
,warn
, anderror
. This can also be specified via theVAULT_LOG_LEVEL
environment variable.