Skip to content

cucumber-tony/terraform-google-managed-instance-group

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Managed Instance Group Terraform Module

Modular Google Compute Engine managed instance group for Terraform.

Usage

data "template_file" "php-startup-script" {
  template = "${file("${format("%s/../scripts/gceme.sh.tpl", path.module)}")}"
  vars {
    PROXY_PATH = ""
  }
}

module "mig1" {
  source            = "GoogleCloudPlatform/managed-instance-group/google#v1.1.7"
  version           = "1.1.7"
  region            = "${var.region}"
  zone              = "${var.zone}"
  name              = "group1"
  size              = 2
  service_port      = 80
  service_port_name = "http"
  target_pools      = ["${module.gce-lb-fr.target_pool}"]
  target_tags       = ["allow-service1"]
  startup_script    = "${data.template_file.php-startup-script.rendered}"
  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

About

Modular Google Compute Engine managed instance group for Terraform.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 100.0%