mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-04 17:51:11 +00:00
make provider-wide region optional (#916)
This commit is contained in:
parent
437b1beb2e
commit
5bf56797f7
@ -40,7 +40,7 @@ func Provider() terraform.ResourceProvider {
|
|||||||
|
|
||||||
"region": &schema.Schema{
|
"region": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Required: true,
|
Optional: true,
|
||||||
DefaultFunc: schema.MultiEnvDefaultFunc([]string{
|
DefaultFunc: schema.MultiEnvDefaultFunc([]string{
|
||||||
"GOOGLE_REGION",
|
"GOOGLE_REGION",
|
||||||
"GCLOUD_REGION",
|
"GCLOUD_REGION",
|
||||||
|
@ -68,7 +68,7 @@ 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, if not specified by a given resource.
|
* `region` - (Optional) The region 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
|
This can also be specified using any of the following environment variables (listed in order of
|
||||||
precedence):
|
precedence):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user