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:
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
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:
auth- type: access-key
access- key: <key>
secret- key: <key>
auth- type: userpass
applicatio n-id: <uuid1>
applicatio n-password: <password>
subscripti on-id: <uuid2>
tenant- id: <uuid3>
aws:
<credential name>:
azure:
<credential name>:
A "credential name" is arbitrary and is used solely to represent a set of credentials, of which there may be multiple per cloud. credentials` .
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-
Examples:
juju add-credential google
juju add-credential aws -f ~/credentials.yaml
See also: list-credentials
remove- credential
set- default- credential
autoload- credentials