From 88c035fa8855ff0fcda2de7075c73b3df34ee9b1 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Fri, 8 Apr 2016 11:01:53 -0400 Subject: [PATCH] Make GCP provider "project" attribute optional --- provider.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/provider.go b/provider.go index e496b4ee..7af7e628 100644 --- a/provider.go +++ b/provider.go @@ -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.`) }