github.com/koding/terraform@v0.6.4-0.20170608090606-5d7e0339779d/website/source/docs/providers/google/d/google_container_engine_versions.html.markdown (about)

     1  ---
     2  layout: "google"
     3  page_title: "Google: google_container_engine_versions"
     4  sidebar_current: "docs-google-datasource-container-versions"
     5  description: |-
     6    Provides lists of available Google Container Engine versions for masters and nodes.
     7  ---
     8  
     9  # google\_container\_engine\_versions
    10  
    11  Provides access to available Google Container Engine versions in a zone for a given project.
    12  
    13  ```hcl
    14  data "google_container_engine_versions" "central1b" {
    15    zone = "us-central1-b"
    16  }
    17  
    18  resource "google_container_cluster" "foo" {
    19    name               = "terraform-test-cluster"
    20    zone               = "us-central1-b"
    21    node_version       = "${data.google_container_engine_versions.central1b.latest_node_version}"
    22    initial_node_count = 1
    23  
    24    master_auth {
    25      username = "mr.yoda"
    26      password = "adoy.rm"
    27    }
    28  }
    29  ```
    30  
    31  ## Argument Reference
    32  
    33  The following arguments are supported:
    34  
    35  * `zone` (required) - Zone to list available cluster versions for. Should match the zone the cluster will be deployed in.
    36  * `project` (optional) - ID of the project to list available cluster versions for. Should match the project the cluster will be deployed to.
    37    Defaults to the project that the provider is authenticated with.
    38  
    39  ## Attributes Reference
    40  
    41  The following attributes are exported:
    42  
    43  * `valid_master_versions` - A list of versions available in the given zone for use with master instances.
    44  * `valid_node_versions` - A list of versions available in the given zone for use with node instances.
    45  * `latest_master_version` - The latest version available in the given zone for use with master instances.
    46  * `latest_node_version` - The latest version available in the given zone for use with node instances.