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.37k stars 1.75k forks source link

Reservation scheduling option to google_tpu_node #8560

Open mugithi opened 3 years ago

mugithi commented 3 years ago

Community Note

Description

google_tpu_node only supports preemptible scheduling option. Please add the reservation scheduling option.

New or Affected Resource(s)

google_tpu_node

Potential Terraform Configuration

resource "google_tpu_node" "tpu" {
  name = "test-tpu"
  zone = "us-central1-b"

  accelerator_type = "v3-32"

  tensorflow_version = data.google_tpu_tensorflow_versions.available.versions[0]

  description = "Terraform Google Provider test TPU"
  use_service_networking = true
  network = google_service_networking_connection.private_service_connection.network

  labels = {
    foo = "bar"
  }

  scheduling_config {
    reserved = true
  }
}

References

Cloud TPU API scheduling config

AlfatahB commented 1 year ago

b/263851588

AlfatahB commented 1 year ago

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