Comment 0 for bug 1566362

Revision history for this message
Peter Matulis (petermatulis) wrote :

e.g.:

Usage: juju add-credential [options] <cloud name>

Summary:
Adds or replaces credentials for a cloud.

Options:

-f (= "")
    Path to YAML credentials file
--replace (= false)
    Overwrite existing credential information

Details:
The user is prompted to add credentials interactively if a YAML-formatted credentials file is not specified. Here is a sample credentials file:

credentials:
   aws:
        <credential name>:
            auth-type: access-key
            access-key: <key>
            secret-key: <key>
   azure:
        <credential name>:
            auth-type: userpass
            application-id: <uuid1>
            application-password: <password>
            subscription-id: <uuid2>
            tenant-id: <uuid3>

A "credential name" is arbitrary and is used solely to represent a set of credentials, of which there may be multiple per cloud.
The `--replace` option is required if credential information for the named cloud already exists. All such information will be overwritten.
This command does not set default regions nor default credentials.
For credentials which are already in use by tools other than Juju, you may wish to use `juju autoload-credentials`.

Examples:

    juju add-credential google
    juju add-credential aws -f ~/credentials.yaml

See also: list-credentials
          remove-credential
          set-default-credential
          autoload-credentials