mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-04 17:51:11 +00:00
Make GCP provider "project" attribute optional
This commit is contained in:
parent
9bcd3c0ad2
commit
88c035fa88
@ -33,7 +33,7 @@ func Provider() terraform.ResourceProvider {
|
||||
|
||||
"project": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Required: true,
|
||||
Required: false,
|
||||
DefaultFunc: schema.EnvDefaultFunc("GOOGLE_PROJECT", nil),
|
||||
},
|
||||
|
||||
@ -122,7 +122,7 @@ func validateAccountFile(v interface{}, k string) (warnings []string, errors []e
|
||||
errors = append(errors, fmt.Errorf("Error loading Account File: %s", err))
|
||||
}
|
||||
if wasPath {
|
||||
warnings = append(warnings, `account_file was provided as a path instead of
|
||||
warnings = append(warnings, `account_file was provided as a path instead of
|
||||
as file contents. This support will be removed in the future. Please update
|
||||
your configuration to use ${file("filename.json")} instead.`)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user