» google_composer_image_versions

Provides access to available Cloud Composer versions in a region for a given project.

» Example Usage

data "google_composer_image_versions" "all" {
}

resource "google_composer_environment" "test" {
  name           = "test-env"
  region         = "us-central1"
  config {
    software_config {
      image_version  = "${data.google_composer_image_versions.all.image_versions.0.image_version_id}"
    }
  }
}

» Argument Reference

The following arguments are supported:

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

  • region - (Optional) The location to list versions in. If it is not provider, the provider region is used.

» Attributes Reference

The following attributes are exported:

  • image_versions - A list of composer image versions available in the given project and location. Each image_version contains: