google_compute_region_instance_group

Get a Compute Region Instance Group within GCE. For more information, see the official documentation and API.

data "google_compute_region_instance_group" "group" {
  name = "instance-group-name"
}

The most common use of this datasource will be to fetch information about the instances inside regional managed instance groups, for instance:

resource "google_compute_region_instance_group_manager" "foo" {
  name               = "some_name"
    ...
  base_instance_name = "foo"
    ...
  instance_template  = google_compute_instance_template.foo.self_link
  target_pools = [google_compute_target_pool.foo.self_link]
    ...
}

data "google_compute_region_instance_group" "data_source" {
  self_link = google_compute_region_instance_group_manager.foo.instance_group
}

Argument Reference

The following arguments are supported:


Attributes Reference

The following arguments are exported: