diff --git a/mmv1/templates/terraform/encoders/cloudbuildv2_repository.go.erb b/mmv1/templates/terraform/encoders/cloudbuildv2_repository.go.erb index ec6945291007..cf6c58a466cb 100644 --- a/mmv1/templates/terraform/encoders/cloudbuildv2_repository.go.erb +++ b/mmv1/templates/terraform/encoders/cloudbuildv2_repository.go.erb @@ -15,7 +15,7 @@ // Extract any empty fields from the parent_connection field. project := d.Get("project").(string) parent_connection := d.Get("parent_connection").(string) -project, err := tpgresource.ExtractFieldByPattern("project", project, parent_connection, "((projects|folders|organizations|billingAccounts)/[a-z0-9A-Z-]*)/locations/.*") +project, err := tpgresource.ExtractFieldByPattern("project", project, parent_connection, "projects/([a-z0-9A-Z-]*)/locations/.*") if err != nil { return nil, fmt.Errorf("error extracting project field: %s", err) }