NOTE: This module is no longer maintained. Please use this module instead.
Modular Google Compute Engine managed instance group for Terraform.
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.
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 template and target pools.google_compute_firewall.default-ssh
: Firewall rule to allow ssh access to the instances.