Update project to be optional, add info about zone (#915)

This commit is contained in:
Dana Hoffman 2018-01-03 13:33:58 -08:00 committed by GitHub
parent 1cd80dcaa0
commit 437b1beb2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ The following keys can be used to configure the provider.
login`](https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login), login`](https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login),
the provider will use your identity. the provider will use your identity.
* `project` - (Required) The ID of the project to apply any resources to. This * `project` - (Optional) The ID of the project to apply any resources to. This
can also be specified using any of the following environment variables (listed can also be specified using any of the following environment variables (listed
in order of precedence): in order of precedence):
@ -68,14 +68,22 @@ The following keys can be used to configure the provider.
* `GCLOUD_PROJECT` * `GCLOUD_PROJECT`
* `CLOUDSDK_CORE_PROJECT` * `CLOUDSDK_CORE_PROJECT`
* `region` - (Required) The region to operate under. This can also be specified * `region` - (Required) The region to operate under, if not specified by a given resource.
using any of the following environment variables (listed in order of This can also be specified using any of the following environment variables (listed in order of
precedence): precedence):
* `GOOGLE_REGION` * `GOOGLE_REGION`
* `GCLOUD_REGION` * `GCLOUD_REGION`
* `CLOUDSDK_COMPUTE_REGION` * `CLOUDSDK_COMPUTE_REGION`
* `zone` - (Optional) The zone to operate under, if not specified by a given resource.
This can also be specified using any of the following environment variables (listed in order of
precedence):
* `GOOGLE_ZONE`
* `GCLOUD_ZONE`
* `CLOUDSDK_COMPUTE_ZONE`
## Authentication JSON File ## Authentication JSON File
Authenticating with Google Cloud services requires a JSON Authenticating with Google Cloud services requires a JSON