Command 'juju add-secret-backend'


juju add-secret-backend [options] <backend-name> <backend-type>


Add a new secret backend to the controller.

Global Options:

--debug  (= false)

Equivalent to --show-log --logging-config=<root>=DEBUG

-h, --help  (= false)

Show help on a command or other topic.

--logging-config (= "")

Specify log levels for modules

--quiet  (= false)

Show no informational output

--show-log  (= false)

If set, write the log file to stderr

--verbose  (= false)

Show more verbose output

Command Options:

-c, --controller (= "")

Controller to operate in

--config  (= )

Path to yaml-formatted configuration file

--import-id (= "")

Add the backend with the specified id


Adds a new secret backend for storing secret content.

You must specify a name for the backend and its type, followed by any necessary backend specific config values. Config may be specified as key values ot read from a file. Any key values override file content if both are specified.

To rotate the backend access credential/token (if specified), use the “token-rotate” config and supply a duration.


juju add-secret-backend myvault vault --config /path/to/cfg.yaml
juju add-secret-backend myvault vault token-rotate=10m --config /path/to/cfg.yaml
juju add-secret-backend myvault vault endpoint= token=s.1wshwhw

See also:


Last updated 9 months ago.