How to query a credential related to a model

See also:

When a model is added to the controller via the add-model command, you can select which credential will be related to the new model. In addition, the Juju client also supports changing the related credential for an existing model via the set-credential command as outlined in the previous section.

The show-model command allows you to query the name of the credential related to a particular model. For instance, to identify the credential used by a model called example:

juju show-model example

Partial output:

  name: admin/example
    name: bob
    owner: admin
    cloud: aws

Last updated 9 months ago.