Skip to content

Commit

Permalink
add missing tpu_tensorflow_versions doc (#2463)
Browse files Browse the repository at this point in the history
Merged PR #2463.
  • Loading branch information
c2thorn authored and modular-magician committed Oct 11, 2019
1 parent 241eacd commit d03be0b
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
3 changes: 3 additions & 0 deletions third_party/terraform/website-compiled/google.erb
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@
<li<%%= sidebar_current("docs-google-datasource-storage-transfer-project-service-account") %>>
<a href="/docs/providers/google/d/google_storage_transfer_project_service_account.html">google_storage_transfer_project_service_account</a>
</li>
<li<%%= sidebar_current("docs-google-datasource-tpu-tensorflow-versions") %>>
<a href="/docs/providers/google/d/datasource_tpu_tensorflow_versions.html">google_tpu_tensorflow_versions</a>
</li>
</ul>
</li>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
layout: "google"
page_title: "Google: google_tpu_tensorflow_versions"
sidebar_current: "docs-google-datasource-tpu-tensorflow-versions"
description: |-
Get available TensorFlow versions.
---

# google\_tpu\_tensorflow\_versions

Get TensorFlow versions available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v1/projects.locations.tensorflowVersions).

## Example Usage

```hcl
data "google_tpu_tensorflow_versions" "available" { }
```

## Example Usage: Configure Basic TPU Node with available version

```hcl
data "google_tpu_tensorflow_versions" "available" { }
resource "google_tpu_node" "tpu" {
name = "test-tpu"
zone = "us-central1-b"
accelerator_type = "v3-8"
tensorflow_version = "${data.google_tpu_tensorflow_versions.available.versions[0]}"
cidr_block = "10.2.0.0/29"
}
```

## 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.

0 comments on commit d03be0b

Please sign in to comment.