FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

google_compute_instance_group_manager

The Google Compute Engine Instance Group Manager API creates and manages pools of homogeneous Compute Engine virtual machine instances from a common instance template. For more information, see the official documentation and API

Example Usage

resource "google_compute_instance_group_manager" "foobar" {
  name        = "terraform-test"
  description = "Terraform test instance group manager"

  base_instance_name = "foobar"
  instance_template  = "${google_compute_instance_template.foobar.self_link}"
  update_strategy    = "NONE"
  zone               = "us-central1-a"

  target_pools = ["${google_compute_target_pool.foobar.self_link}"]
  target_size  = 2

  named_port {
    name = "customHTTP"
    port = 8888
  }
}

Argument Reference

The following arguments are supported:


The named_port block supports: (Include a named_port block for each named-port required).

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:


See the source of this document at Terraform.io