Skip to content

googleContainerAwsVersions

Provides access to available Kubernetes versions in a location for a given project.

Example Usage

import * as cdktf from "cdktf";
/*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 cdktf.TerraformOutput(this, "first_available_version", {
  value: "${data.google_container_aws_versions.versions.valid_versions[0]}",
});
new google.dataGoogleContainerAwsVersions.DataGoogleContainerAwsVersions(
  this,
  "central1b",
  {
    location: "us-west1",
    project: "my-project",
  }
);

Argument Reference

The following arguments are supported:

  • location (Optional) - The location to list versions for.

  • project (Optional) - ID of the project to list available cluster versions for. Should match the project the cluster will be deployed to. Defaults to the project that the provider is authenticated with.

Attributes Reference

The following attributes are exported:

  • validVersions - A list of versions available for use with this project and location.
  • supportedRegions - A list of AWS regions that are available for use with this project and GCP location.