Skip to content

googleTpuTensorflowVersions

Get TensorFlow versions available for a project. For more information see the official documentation and API.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
new google.dataGoogleTpuTensorflowVersions.DataGoogleTpuTensorflowVersions(
  this,
  "available",
  {}
);

Example Usage: Configure Basic TPU Node with available version

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const dataGoogleTpuTensorflowVersionsAvailable =
  new google.dataGoogleTpuTensorflowVersions.DataGoogleTpuTensorflowVersions(
    this,
    "available",
    {}
  );
new google.tpuNode.TpuNode(this, "tpu", {
  accelerator_type: "v3-8",
  cidr_block: "10.2.0.0/29",
  name: "test-tpu",
  tensorflow_version: `\${${dataGoogleTpuTensorflowVersionsAvailable.versions.fqn}[0]}`,
  zone: "us-central1-b",
});

Argument Reference

The following arguments are supported:

  • project - (Optional) The project to list versions for. If it is not provided, the provider project is used.

  • zone - (Optional) The zone to list versions for. If it is not provided, the provider zone is used.

Attributes Reference

The following attributes are exported:

  • versions - The list of TensorFlow versions available for the given project and zone.