Read GOOGLE_CLOUD_PROJECT environment variable also (#1271)

This commit is contained in:
Seth Vargo 2018-03-29 14:43:45 -04:00 committed by Dana Hoffman
parent b0ef8f75e8
commit 4b353bb7a0
2 changed files with 4 additions and 2 deletions

View File

@ -33,6 +33,7 @@ func Provider() terraform.ResourceProvider {
Optional: true,
DefaultFunc: schema.MultiEnvDefaultFunc([]string{
"GOOGLE_PROJECT",
"GOOGLE_CLOUD_PROJECT",
"GCLOUD_PROJECT",
"CLOUDSDK_CORE_PROJECT",
}, nil),

View File

@ -65,6 +65,7 @@ The following keys can be used to configure the provider.
in order of precedence):
* `GOOGLE_PROJECT`
* `GOOGLE_CLOUD_PROJECT`
* `GCLOUD_PROJECT`
* `CLOUDSDK_CORE_PROJECT`
@ -75,11 +76,11 @@ The following keys can be used to configure the provider.
* `GOOGLE_REGION`
* `GCLOUD_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`