hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.29k stars 1.72k forks source link

Support regional endpoints for google_ml_engine_model #7607

Open WouterFlorijn opened 3 years ago

WouterFlorijn commented 3 years ago

Community Note

Description

Currently, the google_ml_engine_model resource does not support regional endpoints (a checkbox in the GCP console). It would be great if this was added through a boolean like regional_endpoint.

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_ml_engine_model" "my_model" {
  name = "my_model"
  description = "My model"
  regional_endpoint = true # Defaults to false.
  regions = ["europe-west4"]
}

Maybe region should be used instead of regions when regional_endpoint is set to true.

AndreasBergmeier6176 commented 2 years ago

There is no real need. You can just do:

provider "google-regional" {
  alias = "regional_ml"
  project                   = "foo-bar"
  region                    = "europe-west2"
  ml_engine_custom_endpoint = "https://europe-west2-ml.googleapis.com/v1/"
}
AarshDhokai commented 1 year ago

b/262230505

AarshDhokai commented 1 year ago

I've looked into this issue and the following are some of the details that I've found out: