Skip to content

googleComputeInstanceGroupManager

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

Example Usage

/*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 google.dataGoogleComputeInstanceGroupManager.DataGoogleComputeInstanceGroupManager(
  this,
  "igm1",
  {
    name: "my-igm",
    zone: "us-central1-a",
  }
);
new google.dataGoogleComputeInstanceGroupManager.DataGoogleComputeInstanceGroupManager(
  this,
  "igm2",
  {
    self_link:
      "https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instanceGroupManagers/my-igm",
  }
);

Argument Reference

The following arguments are supported:

  • name - (Optional) The name of the instance group. Either name or selfLink must be provided.

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

  • selfLink - (Optional) The self link of the instance group. Either name or selfLink must be provided.

  • zone - (Optional) The zone of the instance group. If referencing the instance group by name and zone is not provided, the provider zone is used.


Attributes Reference

See google_compute_instance_group_manager resource for details of all the available attributes.