google_tpu_v2_accelerator_types

Get accelerator types available for a project. For more information see the official documentation and API.

Example Usage

data "google_tpu_v2_accelerator_types" "available" {
}

Example Usage: Configure Basic TPU VM with available type

data "google_tpu_v2_accelerator_types" "available" {
}

data "google_tpu_v2_runtime_versions" "available" {
}

resource "google_tpu_v2_vm" "tpu" {
  name = "test-tpu"
  zone = "us-central1-b"
  runtime_version = data.google_tpu_v2_runtime_versions.available.versions[0]
  accelerator_type = data.google_tpu_v2_accelerator_types.available.types[0]
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported: