This message was deleted.
# help
b
This message was deleted.
c
Hi Cédric, any chance you can share a sanitized version of the block that is causing the error (including provider region, etc…)? Something simple like what we use in our test cases makes it a lot easier to debug.
s
Sure:
Copy code
resource "google_compute_instance" "debug" {
  name = "debug"
  machine_type   = "c2d-highcpu-2"
  zone           = "europe-west1-b"
  enable_display = true

  tags = ["k8s-cluster", "k8s-lb"]

  boot_disk {
    initialize_params {
      image = "ubuntu-2004-lts"
      size  = 30
    }
  }

  network_interface {
    network    = google_compute_network.vpc_net.name
    subnetwork = google_compute_subnetwork.vpc_subnet.name
  }

  metadata = {
    ssh-keys = <<EOF
      ubuntu:${var.ssh_public}
    EOF
  }

  service_account {
    email  = google_service_account.instance_sa.email
    scopes = ["cloud-platform"]
  }
}
c
Cool that works. I will create a github issue and paste the link here so you can follow the progress
s
Ok, it works with
f1-micro
but not with
c2d-highcpu-2
.
c