managed-instance-group
GoogleCloudPlatform/managed-instance-group/google
Modular Google Compute Engine managed instance group for Terraform.
Managed Instance Group Terraform Module Modular Google Compute Engine managed instance group for Terraform. Usage ``ruby module "mig1" { source = "GoogleCloudPlatform/managed-instance-group/google" version = "1.1.14" region = "${var.region}" zone = "${var.zone}" name = "group1" size = 2 service_port = 80 service_port_name = "http" http_health_check = false target_pools = ["${module.gce-lb-fr.target_pool}"] target_tags = ["allow-service1"] ssh_source_ranges = ["0.0.0.0/0"] } ` > NOTE: Make sure you are using version pinning to avoid unexpected changes when the module is updated. Resources created - google_compute_instance_template.default: The instance template assigned to the instance group. - google_compute_instance_group_manager.default: The instange group manager that uses the instance
| Name | Type | Description | Default |
|---|---|---|---|
| http_health_check | string | Enable or disable the http health check for auto healing. | true |
| hc_unhealthy_threshold | string | Health check, unhealthy threshold. | 10 |
| hc_path | string | Health check, the http path to check. | "/" |
| ssh_fw_rule | string | Whether or not the SSH Firewall Rule should be created | true |
| hc_initial_delay | string | Health check, intial delay in seconds. | 30 |
| hc_interval | string | Health check, check interval in seconds. | 30 |
| hc_timeout | string | Health check, timeout in seconds. | 10 |
| hc_healthy_threshold | string | Health check, healthy threshold. | 1 |
| hc_port | string | Health check, health check port, if different from var.service_port, if not give | "" |
instance_group — Link to the `instance_group` property of the instance group manager resource.instances — List of instances in the instance group. Note that this can change dynamically depending on the currservice_port — Pass through of input `service_port`.service_port_name — Pass through of input `service_port_name`.depends_id — Id of the dummy dependency created used for intra-module dependency creation with zonal groups.region_depends_id — Id of the dummy dependency created used for intra-module dependency creation with regional groups.network_ip — Pass through of input `network_ip`.name — Pass through of input `name`.instance_template — Link to the instance_template for the groupregion_instance_group — Link to the `instance_group` property of the region instance group manager resource.target_tags — Pass through of input `target_tags`.health_check — The healthcheck for the managed instance group