mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-01 16:21:06 +00:00
Read GOOGLE_CLOUD_PROJECT environment variable also (#1271)
This commit is contained in:
parent
b0ef8f75e8
commit
4b353bb7a0
@ -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),
|
||||
|
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user