diff --git a/.changelog/4634.txt b/.changelog/4634.txt new file mode 100644 index 0000000000..446eae3f07 --- /dev/null +++ b/.changelog/4634.txt @@ -0,0 +1,3 @@ +```release-note:bug +compute: added minimum for `scopes` field to `google_compute_instance` resource +``` diff --git a/google-beta/resource_compute_instance.go b/google-beta/resource_compute_instance.go index 9c43492410..1f46f657f9 100644 --- a/google-beta/resource_compute_instance.go +++ b/google-beta/resource_compute_instance.go @@ -591,6 +591,7 @@ func resourceComputeInstance() *schema.Resource { "scopes": { Type: schema.TypeSet, Required: true, + MinItems: 1, Description: `A list of service scopes.`, Elem: &schema.Schema{ Type: schema.TypeString, diff --git a/google-beta/resource_dataflow_flex_template_job_test.go b/google-beta/resource_dataflow_flex_template_job_test.go index df04d28bb0..0d037482e0 100644 --- a/google-beta/resource_dataflow_flex_template_job_test.go +++ b/google-beta/resource_dataflow_flex_template_job_test.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" - "google.golang.org/api/compute/v1" + compute "google.golang.org/api/compute/v1" ) func TestAccDataflowFlexTemplateJob_basic(t *testing.T) {