From f30e8cbf44f9447b4c3b2ce240518e0f6752e2ca Mon Sep 17 00:00:00 2001 From: Alex Stephen Date: Fri, 16 Aug 2019 22:17:36 +0000 Subject: [PATCH] ML Engine Models in Terraform Signed-off-by: Modular Magician --- google/config.go | 2 + google/ml_engine_operation.go | 48 +++ google/provider.go | 11 + google/resource_ml_engine_model.go | 371 ++++++++++++++++++ ...resource_ml_engine_model_generated_test.go | 123 ++++++ website/docs/r/ml_engine_model.html.markdown | 140 +++++++ website/google.erb | 8 + 7 files changed, 703 insertions(+) create mode 100644 google/ml_engine_operation.go create mode 100644 google/resource_ml_engine_model.go create mode 100644 google/resource_ml_engine_model_generated_test.go create mode 100644 website/docs/r/ml_engine_model.html.markdown diff --git a/google/config.go b/google/config.go index 4ecc669dfe3..3c8d36f9850 100644 --- a/google/config.go +++ b/google/config.go @@ -82,6 +82,7 @@ type Config struct { FirestoreBasePath string KmsBasePath string LoggingBasePath string + MLEngineBasePath string MonitoringBasePath string PubsubBasePath string RedisBasePath string @@ -206,6 +207,7 @@ var FilestoreDefaultBasePath = "https://file.googleapis.com/v1/" var FirestoreDefaultBasePath = "https://firestore.googleapis.com/v1/" var KmsDefaultBasePath = "https://cloudkms.googleapis.com/v1/" var LoggingDefaultBasePath = "https://logging.googleapis.com/v2/" +var MLEngineDefaultBasePath = "https://ml.googleapis.com/v1/" var MonitoringDefaultBasePath = "https://monitoring.googleapis.com/v3/" var PubsubDefaultBasePath = "https://pubsub.googleapis.com/v1/" var RedisDefaultBasePath = "https://redis.googleapis.com/v1/" diff --git a/google/ml_engine_operation.go b/google/ml_engine_operation.go new file mode 100644 index 00000000000..653acea5f90 --- /dev/null +++ b/google/ml_engine_operation.go @@ -0,0 +1,48 @@ +// ---------------------------------------------------------------------------- +// +// *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** +// +// ---------------------------------------------------------------------------- +// +// This file is automatically generated by Magic Modules and manual +// changes will be clobbered when the file is regenerated. +// +// Please read more about how to change this file in +// .github/CONTRIBUTING.md. +// +// ---------------------------------------------------------------------------- +package google + +import ( + "fmt" +) + +type MLEngineOperationWaiter struct { + Config *Config + Project string + CommonOperationWaiter +} + +func (w *MLEngineOperationWaiter) QueryOp() (interface{}, error) { + if w == nil { + return nil, fmt.Errorf("Cannot query operation, it's unset or nil.") + } + // Returns the proper get. + url := fmt.Sprintf("https://ml.googleapis.com/v1/%s", w.CommonOperationWaiter.Op.Name) + return sendRequest(w.Config, "GET", w.Project, url, nil) +} + +func mLEngineOperationWaitTime(config *Config, op map[string]interface{}, project, activity string, timeoutMinutes int) error { + if val, ok := op["name"]; !ok || val == "" { + // This was a synchronous call - there is no operation to wait for. + return nil + } + w := &MLEngineOperationWaiter{ + Config: config, + Project: project, + } + if err := w.CommonOperationWaiter.SetOp(op); err != nil { + return err + } + return OperationWait(w, activity, timeoutMinutes) +} diff --git a/google/provider.go b/google/provider.go index 9d9d96b0757..9f887627077 100644 --- a/google/provider.go +++ b/google/provider.go @@ -207,6 +207,14 @@ func Provider() terraform.ResourceProvider { "GOOGLE_LOGGING_CUSTOM_ENDPOINT", }, LoggingDefaultBasePath), }, + "ml_engine_custom_endpoint": { + Type: schema.TypeString, + Optional: true, + ValidateFunc: validateCustomEndpoint, + DefaultFunc: schema.MultiEnvDefaultFunc([]string{ + "GOOGLE_ML_ENGINE_CUSTOM_ENDPOINT", + }, MLEngineDefaultBasePath), + }, "monitoring_custom_endpoint": { Type: schema.TypeString, Optional: true, @@ -438,6 +446,7 @@ func ResourceMapWithErrors() (map[string]*schema.Resource, error) { "google_kms_key_ring": resourceKmsKeyRing(), "google_kms_crypto_key": resourceKmsCryptoKey(), "google_logging_metric": resourceLoggingMetric(), + "google_ml_engine_model": resourceMLEngineModel(), "google_monitoring_alert_policy": resourceMonitoringAlertPolicy(), "google_monitoring_group": resourceMonitoringGroup(), "google_monitoring_notification_channel": resourceMonitoringNotificationChannel(), @@ -626,6 +635,7 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) { config.FirestoreBasePath = d.Get("firestore_custom_endpoint").(string) config.KmsBasePath = d.Get("kms_custom_endpoint").(string) config.LoggingBasePath = d.Get("logging_custom_endpoint").(string) + config.MLEngineBasePath = d.Get("ml_engine_custom_endpoint").(string) config.MonitoringBasePath = d.Get("monitoring_custom_endpoint").(string) config.PubsubBasePath = d.Get("pubsub_custom_endpoint").(string) config.RedisBasePath = d.Get("redis_custom_endpoint").(string) @@ -686,6 +696,7 @@ func ConfigureBasePaths(c *Config) { c.FirestoreBasePath = FirestoreDefaultBasePath c.KmsBasePath = KmsDefaultBasePath c.LoggingBasePath = LoggingDefaultBasePath + c.MLEngineBasePath = MLEngineDefaultBasePath c.MonitoringBasePath = MonitoringDefaultBasePath c.PubsubBasePath = PubsubDefaultBasePath c.RedisBasePath = RedisDefaultBasePath diff --git a/google/resource_ml_engine_model.go b/google/resource_ml_engine_model.go new file mode 100644 index 00000000000..0a2f47573c2 --- /dev/null +++ b/google/resource_ml_engine_model.go @@ -0,0 +1,371 @@ +// ---------------------------------------------------------------------------- +// +// *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** +// +// ---------------------------------------------------------------------------- +// +// This file is automatically generated by Magic Modules and manual +// changes will be clobbered when the file is regenerated. +// +// Please read more about how to change this file in +// .github/CONTRIBUTING.md. +// +// ---------------------------------------------------------------------------- + +package google + +import ( + "fmt" + "log" + "reflect" + "time" + + "github.com/hashicorp/terraform/helper/schema" +) + +func resourceMLEngineModel() *schema.Resource { + return &schema.Resource{ + Create: resourceMLEngineModelCreate, + Read: resourceMLEngineModelRead, + Delete: resourceMLEngineModelDelete, + + Importer: &schema.ResourceImporter{ + State: resourceMLEngineModelImport, + }, + + Timeouts: &schema.ResourceTimeout{ + Create: schema.DefaultTimeout(4 * time.Minute), + Delete: schema.DefaultTimeout(4 * time.Minute), + }, + + Schema: map[string]*schema.Schema{ + "name": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "default_version": { + Type: schema.TypeList, + Optional: true, + ForceNew: true, + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + }, + }, + }, + }, + "description": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + }, + "labels": { + Type: schema.TypeMap, + Optional: true, + ForceNew: true, + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "online_prediction_console_logging": { + Type: schema.TypeBool, + Optional: true, + ForceNew: true, + }, + "online_prediction_logging": { + Type: schema.TypeBool, + Optional: true, + ForceNew: true, + }, + "regions": { + Type: schema.TypeList, + Optional: true, + ForceNew: true, + MaxItems: 1, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "project": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + }, + } +} + +func resourceMLEngineModelCreate(d *schema.ResourceData, meta interface{}) error { + config := meta.(*Config) + + obj := make(map[string]interface{}) + nameProp, err := expandMLEngineModelName(d.Get("name"), d, config) + if err != nil { + return err + } else if v, ok := d.GetOkExists("name"); !isEmptyValue(reflect.ValueOf(nameProp)) && (ok || !reflect.DeepEqual(v, nameProp)) { + obj["name"] = nameProp + } + descriptionProp, err := expandMLEngineModelDescription(d.Get("description"), d, config) + if err != nil { + return err + } else if v, ok := d.GetOkExists("description"); !isEmptyValue(reflect.ValueOf(descriptionProp)) && (ok || !reflect.DeepEqual(v, descriptionProp)) { + obj["description"] = descriptionProp + } + defaultVersionProp, err := expandMLEngineModelDefaultVersion(d.Get("default_version"), d, config) + if err != nil { + return err + } else if v, ok := d.GetOkExists("default_version"); !isEmptyValue(reflect.ValueOf(defaultVersionProp)) && (ok || !reflect.DeepEqual(v, defaultVersionProp)) { + obj["defaultVersion"] = defaultVersionProp + } + regionsProp, err := expandMLEngineModelRegions(d.Get("regions"), d, config) + if err != nil { + return err + } else if v, ok := d.GetOkExists("regions"); !isEmptyValue(reflect.ValueOf(regionsProp)) && (ok || !reflect.DeepEqual(v, regionsProp)) { + obj["regions"] = regionsProp + } + onlinePredictionLoggingProp, err := expandMLEngineModelOnlinePredictionLogging(d.Get("online_prediction_logging"), d, config) + if err != nil { + return err + } else if v, ok := d.GetOkExists("online_prediction_logging"); !isEmptyValue(reflect.ValueOf(onlinePredictionLoggingProp)) && (ok || !reflect.DeepEqual(v, onlinePredictionLoggingProp)) { + obj["onlinePredictionLogging"] = onlinePredictionLoggingProp + } + onlinePredictionConsoleLoggingProp, err := expandMLEngineModelOnlinePredictionConsoleLogging(d.Get("online_prediction_console_logging"), d, config) + if err != nil { + return err + } else if v, ok := d.GetOkExists("online_prediction_console_logging"); !isEmptyValue(reflect.ValueOf(onlinePredictionConsoleLoggingProp)) && (ok || !reflect.DeepEqual(v, onlinePredictionConsoleLoggingProp)) { + obj["onlinePredictionConsoleLogging"] = onlinePredictionConsoleLoggingProp + } + labelsProp, err := expandMLEngineModelLabels(d.Get("labels"), d, config) + if err != nil { + return err + } else if v, ok := d.GetOkExists("labels"); !isEmptyValue(reflect.ValueOf(labelsProp)) && (ok || !reflect.DeepEqual(v, labelsProp)) { + obj["labels"] = labelsProp + } + + url, err := replaceVars(d, config, "{{MLEngineBasePath}}projects/{{project}}/models") + if err != nil { + return err + } + + log.Printf("[DEBUG] Creating new Model: %#v", obj) + project, err := getProject(d, config) + if err != nil { + return err + } + res, err := sendRequestWithTimeout(config, "POST", project, url, obj, d.Timeout(schema.TimeoutCreate)) + if err != nil { + return fmt.Errorf("Error creating Model: %s", err) + } + + // Store the ID now + id, err := replaceVars(d, config, "{{name}}") + if err != nil { + return fmt.Errorf("Error constructing id: %s", err) + } + d.SetId(id) + + log.Printf("[DEBUG] Finished creating Model %q: %#v", d.Id(), res) + + return resourceMLEngineModelRead(d, meta) +} + +func resourceMLEngineModelRead(d *schema.ResourceData, meta interface{}) error { + config := meta.(*Config) + + url, err := replaceVars(d, config, "{{MLEngineBasePath}}projects/{{project}}/models/{{name}}") + if err != nil { + return err + } + + project, err := getProject(d, config) + if err != nil { + return err + } + res, err := sendRequest(config, "GET", project, url, nil) + if err != nil { + return handleNotFoundError(err, d, fmt.Sprintf("MLEngineModel %q", d.Id())) + } + + if err := d.Set("project", project); err != nil { + return fmt.Errorf("Error reading Model: %s", err) + } + + if err := d.Set("name", flattenMLEngineModelName(res["name"], d)); err != nil { + return fmt.Errorf("Error reading Model: %s", err) + } + if err := d.Set("description", flattenMLEngineModelDescription(res["description"], d)); err != nil { + return fmt.Errorf("Error reading Model: %s", err) + } + if err := d.Set("default_version", flattenMLEngineModelDefaultVersion(res["defaultVersion"], d)); err != nil { + return fmt.Errorf("Error reading Model: %s", err) + } + if err := d.Set("regions", flattenMLEngineModelRegions(res["regions"], d)); err != nil { + return fmt.Errorf("Error reading Model: %s", err) + } + if err := d.Set("online_prediction_logging", flattenMLEngineModelOnlinePredictionLogging(res["onlinePredictionLogging"], d)); err != nil { + return fmt.Errorf("Error reading Model: %s", err) + } + if err := d.Set("online_prediction_console_logging", flattenMLEngineModelOnlinePredictionConsoleLogging(res["onlinePredictionConsoleLogging"], d)); err != nil { + return fmt.Errorf("Error reading Model: %s", err) + } + if err := d.Set("labels", flattenMLEngineModelLabels(res["labels"], d)); err != nil { + return fmt.Errorf("Error reading Model: %s", err) + } + + return nil +} + +func resourceMLEngineModelDelete(d *schema.ResourceData, meta interface{}) error { + config := meta.(*Config) + + project, err := getProject(d, config) + if err != nil { + return err + } + + url, err := replaceVars(d, config, "{{MLEngineBasePath}}projects/{{project}}/models/{{name}}") + if err != nil { + return err + } + + var obj map[string]interface{} + log.Printf("[DEBUG] Deleting Model %q", d.Id()) + + res, err := sendRequestWithTimeout(config, "DELETE", project, url, obj, d.Timeout(schema.TimeoutDelete)) + if err != nil { + return handleNotFoundError(err, d, "Model") + } + + err = mLEngineOperationWaitTime( + config, res, project, "Deleting Model", + int(d.Timeout(schema.TimeoutDelete).Minutes())) + + if err != nil { + return err + } + + log.Printf("[DEBUG] Finished deleting Model %q: %#v", d.Id(), res) + return nil +} + +func resourceMLEngineModelImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) { + config := meta.(*Config) + if err := parseImportId([]string{ + "projects/(?P[^/]+)/models/(?P[^/]+)", + "(?P[^/]+)/(?P[^/]+)", + "(?P[^/]+)", + }, d, config); err != nil { + return nil, err + } + + // Replace import id for the resource id + id, err := replaceVars(d, config, "{{name}}") + if err != nil { + return nil, fmt.Errorf("Error constructing id: %s", err) + } + d.SetId(id) + + return []*schema.ResourceData{d}, nil +} + +func flattenMLEngineModelName(v interface{}, d *schema.ResourceData) interface{} { + if v == nil { + return v + } + return NameFromSelfLinkStateFunc(v) +} + +func flattenMLEngineModelDescription(v interface{}, d *schema.ResourceData) interface{} { + return v +} + +func flattenMLEngineModelDefaultVersion(v interface{}, d *schema.ResourceData) interface{} { + if v == nil { + return nil + } + original := v.(map[string]interface{}) + if len(original) == 0 { + return nil + } + transformed := make(map[string]interface{}) + transformed["name"] = + flattenMLEngineModelDefaultVersionName(original["name"], d) + return []interface{}{transformed} +} +func flattenMLEngineModelDefaultVersionName(v interface{}, d *schema.ResourceData) interface{} { + return v +} + +func flattenMLEngineModelRegions(v interface{}, d *schema.ResourceData) interface{} { + return v +} + +func flattenMLEngineModelOnlinePredictionLogging(v interface{}, d *schema.ResourceData) interface{} { + return v +} + +func flattenMLEngineModelOnlinePredictionConsoleLogging(v interface{}, d *schema.ResourceData) interface{} { + return v +} + +func flattenMLEngineModelLabels(v interface{}, d *schema.ResourceData) interface{} { + return v +} + +func expandMLEngineModelName(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) { + return v, nil +} + +func expandMLEngineModelDescription(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) { + return v, nil +} + +func expandMLEngineModelDefaultVersion(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) { + l := v.([]interface{}) + if len(l) == 0 || l[0] == nil { + return nil, nil + } + raw := l[0] + original := raw.(map[string]interface{}) + transformed := make(map[string]interface{}) + + transformedName, err := expandMLEngineModelDefaultVersionName(original["name"], d, config) + if err != nil { + return nil, err + } else if val := reflect.ValueOf(transformedName); val.IsValid() && !isEmptyValue(val) { + transformed["name"] = transformedName + } + + return transformed, nil +} + +func expandMLEngineModelDefaultVersionName(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) { + return v, nil +} + +func expandMLEngineModelRegions(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) { + return v, nil +} + +func expandMLEngineModelOnlinePredictionLogging(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) { + return v, nil +} + +func expandMLEngineModelOnlinePredictionConsoleLogging(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) { + return v, nil +} + +func expandMLEngineModelLabels(v interface{}, d TerraformResourceData, config *Config) (map[string]string, error) { + if v == nil { + return map[string]string{}, nil + } + m := make(map[string]string) + for k, val := range v.(map[string]interface{}) { + m[k] = val.(string) + } + return m, nil +} diff --git a/google/resource_ml_engine_model_generated_test.go b/google/resource_ml_engine_model_generated_test.go new file mode 100644 index 00000000000..497d6cc87d2 --- /dev/null +++ b/google/resource_ml_engine_model_generated_test.go @@ -0,0 +1,123 @@ +// ---------------------------------------------------------------------------- +// +// *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** +// +// ---------------------------------------------------------------------------- +// +// This file is automatically generated by Magic Modules and manual +// changes will be clobbered when the file is regenerated. +// +// Please read more about how to change this file in +// .github/CONTRIBUTING.md. +// +// ---------------------------------------------------------------------------- + +package google + +import ( + "fmt" + "strings" + "testing" + + "github.com/hashicorp/terraform/helper/acctest" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" +) + +func TestAccMLEngineModel_mlModelBasicExample(t *testing.T) { + t.Parallel() + + context := map[string]interface{}{ + "random_suffix": acctest.RandString(10), + } + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: testAccProviders, + CheckDestroy: testAccCheckMLEngineModelDestroy, + Steps: []resource.TestStep{ + { + Config: testAccMLEngineModel_mlModelBasicExample(context), + }, + { + ResourceName: "google_ml_engine_model.default", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} + +func testAccMLEngineModel_mlModelBasicExample(context map[string]interface{}) string { + return Nprintf(` +resource "google_ml_engine_model" "default" { + name = "default%{random_suffix}" + description = "My model" + regions = ["us-central1"] +} +`, context) +} + +func TestAccMLEngineModel_mlModelFullExample(t *testing.T) { + t.Parallel() + + context := map[string]interface{}{ + "random_suffix": acctest.RandString(10), + } + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: testAccProviders, + CheckDestroy: testAccCheckMLEngineModelDestroy, + Steps: []resource.TestStep{ + { + Config: testAccMLEngineModel_mlModelFullExample(context), + }, + { + ResourceName: "google_ml_engine_model.default", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} + +func testAccMLEngineModel_mlModelFullExample(context map[string]interface{}) string { + return Nprintf(` +resource "google_ml_engine_model" "default" { + name = "default%{random_suffix}" + description = "My model" + regions = ["us-central1"] + labels = { + my_model = "foo" + } + online_prediction_logging = true + online_prediction_console_logging = true +} +`, context) +} + +func testAccCheckMLEngineModelDestroy(s *terraform.State) error { + for name, rs := range s.RootModule().Resources { + if rs.Type != "google_ml_engine_model" { + continue + } + if strings.HasPrefix(name, "data.") { + continue + } + + config := testAccProvider.Meta().(*Config) + + url, err := replaceVarsForTest(config, rs, "{{MLEngineBasePath}}projects/{{project}}/models/{{name}}") + if err != nil { + return err + } + + _, err = sendRequest(config, "GET", "", url, nil) + if err == nil { + return fmt.Errorf("MLEngineModel still exists at %s", url) + } + } + + return nil +} diff --git a/website/docs/r/ml_engine_model.html.markdown b/website/docs/r/ml_engine_model.html.markdown new file mode 100644 index 00000000000..cd691ddd12b --- /dev/null +++ b/website/docs/r/ml_engine_model.html.markdown @@ -0,0 +1,140 @@ +--- +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in +# .github/CONTRIBUTING.md. +# +# ---------------------------------------------------------------------------- +layout: "google" +page_title: "Google: google_ml_engine_model" +sidebar_current: "docs-google-ml-engine-model" +description: |- + Represents a machine learning solution. +--- + +# google\_ml\_engine\_model + +Represents a machine learning solution. + +A model can have multiple versions, each of which is a deployed, trained model +ready to receive prediction requests. The model itself is just a container. + + + + +## Example Usage - Ml Model Basic + + +```hcl +resource "google_ml_engine_model" "default" { + name = "default" + description = "My model" + regions = ["us-central1"] +} +``` + +## Example Usage - Ml Model Full + + +```hcl +resource "google_ml_engine_model" "default" { + name = "default" + description = "My model" + regions = ["us-central1"] + labels = { + my_model = "foo" + } + online_prediction_logging = true + online_prediction_console_logging = true +} +``` + +## Argument Reference + +The following arguments are supported: + + +* `name` - + (Required) + The name specified for the model. + + +- - - + + +* `description` - + (Optional) + The description specified for the model when it was created. + +* `default_version` - + (Optional) + The default version of the model. This version will be used to handle + prediction requests that do not specify a version. Structure is documented below. + +* `regions` - + (Optional) + The list of regions where the model is going to be deployed. + Currently only one region per model is supported + +* `online_prediction_logging` - + (Optional) + If true, online prediction access logs are sent to StackDriver Logging. + +* `online_prediction_console_logging` - + (Optional) + If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging + +* `labels` - + (Optional) + One or more labels that you can add, to organize your models. + +* `project` - (Optional) The ID of the project in which the resource belongs. + If it is not provided, the provider project is used. + + +The `default_version` block supports: + +* `name` - + (Optional) + The name specified for the version when it was created. + + +## Timeouts + +This resource provides the following +[Timeouts](/docs/configuration/resources.html#timeouts) configuration options: + +- `create` - Default is 4 minutes. +- `delete` - Default is 4 minutes. + +## Import + +Model can be imported using any of these accepted formats: + +``` +$ terraform import google_ml_engine_model.default projects/{{project}}/models/{{name}} +$ terraform import google_ml_engine_model.default {{project}}/{{name}} +$ terraform import google_ml_engine_model.default {{name}} +``` + +-> If you're importing a resource with beta features, make sure to include `-provider=google-beta` +as an argument so that Terraform uses the correct provider to import your resource. + +## User Project Overrides + +This resource supports [User Project Overrides](https://www.terraform.io/docs/providers/google/provider_reference.html#user_project_override). diff --git a/website/google.erb b/website/google.erb index f2ad94100b2..49fe163dc84 100644 --- a/website/google.erb +++ b/website/google.erb @@ -755,6 +755,14 @@ + > + Google ML Engine Resources + + > Google PubSub Resources