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.25k stars 1.7k forks source link

Error updating workbench labels in VertexAI #17148

Open alfonsozamorac opened 5 months ago

alfonsozamorac commented 5 months ago

Community Note

Terraform Version

Terraform v1.2.9 hashicorp/google v5.14.0

Affected Resource(s)

google_notebooks_runtime

Terraform Configuration Files

terraform {
  required_version = ">= 0.15"
  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "~> 5.0"
    }
  }
}

resource "google_notebooks_runtime" "runtime" {
  name     = "notebooks-runtime"
  location = "europe-west4"
  project  = "MyProject"
  access_config {
    access_type   = "SINGLE_USER"
    runtime_owner = "XXXXX"
  }
  virtual_machine {
    virtual_machine_config {
      machine_type = "n1-standard-1"
      data_disk {
        initialize_params {
          disk_size_gb = "50"
          disk_type    = "PD_STANDARD"
        }
      }
    }
  }
  labels = {
    "provider" = "go",
    "region" = "euw4",
    "environment" = "tst",
    "app" = "myapp",
  }
}

Expected Behavior

Labels can be updated

Actual Behavior

│ Error: Error waiting for Updating Runtime: Error code 3, message: labels can't be updated │ │ with google_notebooks_runtime.runtime, │ on main.tf line 16, in resource "google_notebooks_runtime" "runtime": │ 16: resource "google_notebooks_runtime" "runtime" {

Steps to Reproduce

  1. terraform apply
  2. Modify tags value: labels = { "provider" = "go", "region" = "euw4", "environment" = "tst", "app" = "newapp", }
  3. terraform apply

b/323334345

edwardmedia commented 5 months ago

I can repro the issue. This appears to be an API bug.

labels is part of Instance which is supposed to be updatable specified in updateMask

prabhu34 commented 1 month ago

Any update on this @edwardmedia ?