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

Support V5P for type of accelerator_config in google_tpu_v2_vm #17734

Open marblejenka opened 8 months ago

marblejenka commented 8 months ago

Community Note

Description

As of google-provider 5.22.0, type of accelerator_config in google_tpu_v2_vm does not support the value V5P. The value is useful to setup TPU v5p with some specific topology(Slice Shape).

New or Affected Resource(s)

Affected Resource

Potential Terraform Configuration

resource "google_tpu_v2_vm" "tpu" {
  name = "test-tpu"
  zone = "us-central1-c"

  runtime_version  = "tpu-vm-tf-2.13.0"

  accelerator_config {
    type     = "V5P"
    topology = "2x2x1"
  }
}

References

b/337873707

rileykarson commented 7 months ago

We may just want to make the enum a string in the provider if the list will grow over time!