mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-04 17:51:11 +00:00
Merge pull request #262 from ubschmidt2/default_creds
Document that TF falls back to using the application default credentials.
This commit is contained in:
commit
cb538a3535
@ -36,11 +36,10 @@ The following keys can be used to configure the provider.
|
|||||||
|
|
||||||
* `credentials` - (Optional) Contents of the JSON file used to describe your
|
* `credentials` - (Optional) Contents of the JSON file used to describe your
|
||||||
account credentials, downloaded from Google Cloud Console. More details on
|
account credentials, downloaded from Google Cloud Console. More details on
|
||||||
retrieving this file are below. Credentials may be blank if you are running
|
retrieving this file are below.
|
||||||
Terraform from a GCE instance with a properly-configured [Compute Engine
|
|
||||||
Service Account](https://cloud.google.com/compute/docs/authentication). This
|
Credentials can also be specified using any of the following environment
|
||||||
can also be specified using any of the following environment variables
|
variables (listed in order of precedence):
|
||||||
(listed in order of precedence):
|
|
||||||
|
|
||||||
* `GOOGLE_CREDENTIALS`
|
* `GOOGLE_CREDENTIALS`
|
||||||
* `GOOGLE_CLOUD_KEYFILE_JSON`
|
* `GOOGLE_CLOUD_KEYFILE_JSON`
|
||||||
@ -50,6 +49,17 @@ The following keys can be used to configure the provider.
|
|||||||
environment variable can also contain the path of a file to obtain credentials
|
environment variable can also contain the path of a file to obtain credentials
|
||||||
from.
|
from.
|
||||||
|
|
||||||
|
If no credentials are specified, the provider will fall back to using the
|
||||||
|
[Google Application Default
|
||||||
|
Credentials](https://developers.google.com/identity/protocols/application-default-credentials).
|
||||||
|
If you are running Terraform from a GCE instance, see [Creating and Enabling
|
||||||
|
Service Accounts for
|
||||||
|
Instances](https://cloud.google.com/compute/docs/authentication) for
|
||||||
|
details. On your computer, if you have made your identity available as the
|
||||||
|
Application Default Credentials by running [`gcloud auth application-default
|
||||||
|
login`](https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login),
|
||||||
|
the provider will use your identity.
|
||||||
|
|
||||||
* `project` - (Required) The ID of the project to apply any resources to. This
|
* `project` - (Required) The ID of the project to apply any resources to. This
|
||||||
can be specified using any of the following environment variables (listed in
|
can be specified using any of the following environment variables (listed in
|
||||||
order of precedence):
|
order of precedence):
|
||||||
|
Loading…
Reference in New Issue
Block a user