Skip to content

Commit e8d23d6

Browse files
ubschmidt2Dmitry Vlasov
authored and
Dmitry Vlasov
committed
Document that the Terraform Google Provider will fall back to using the Application Default Credentials. In particular, it will use the user's identify if the user has made his credentials available by running gcloud auth application-default login.
1 parent 4b343ef commit e8d23d6

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

website/docs/index.html.markdown

+15-5
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@ The following keys can be used to configure the provider.
3636

3737
* `credentials` - (Optional) Contents of the JSON file used to describe your
3838
account credentials, downloaded from Google Cloud Console. More details on
39-
retrieving this file are below. Credentials may be blank if you are running
40-
Terraform from a GCE instance with a properly-configured [Compute Engine
41-
Service Account](https://cloud.google.com/compute/docs/authentication). This
42-
can also be specified using any of the following environment variables
43-
(listed in order of precedence):
39+
retrieving this file are below.
40+
41+
Credentials can also be specified using any of the following environment
42+
variables (listed in order of precedence):
4443

4544
* `GOOGLE_CREDENTIALS`
4645
* `GOOGLE_CLOUD_KEYFILE_JSON`
@@ -50,6 +49,17 @@ The following keys can be used to configure the provider.
5049
environment variable can also contain the path of a file to obtain credentials
5150
from.
5251

52+
If no credentials are specified, the provider will fall back to using the
53+
[Google Application Default
54+
Credentials](https://developers.google.com/identity/protocols/application-default-credentials).
55+
If you are running Terraform from a GCE instance, see [Creating and Enabling
56+
Service Accounts for
57+
Instances](https://cloud.google.com/compute/docs/authentication) for
58+
details. On your computer, if you have made your identity available as the
59+
Application Default Credentials by running [`gcloud auth application-default
60+
login`](https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login),
61+
the provider will use your identity.
62+
5363
* `project` - (Required) The ID of the project to apply any resources to. This
5464
can be specified using any of the following environment variables (listed in
5565
order of precedence):

0 commit comments

Comments
 (0)