Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

Ecosystem-Infra/terraform-google-multi-port-managed-instance-group

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-port Managed Instance Group Terraform Module

Modular Google Compute Engine managed instance group for Terraform.

This repository is a fork, maintained in order to define a managed instance group with seven service ports.

Usage

module "mig1" {
  source              = "GoogleCloudPlatform/managed-instance-group/google"
  version             = "1.1.14"
  region              = "${var.region}"
  zone                = "${var.zone}"
  name                = "group1"
  size                = 2
  service_port_1      = 80
  service_port_1_name = "http-primary"
  service_port_2      = 8000
  service_port_2_name = "http-secondary"
  service_port_3      = 443
  service_port_3_name = "https"
  service_port_4      = 8001
  service_port_4_name = "http2"
  service_port_5      = 8002
  service_port_5_name = "websocket"
  service_port_6      = 8003
  service_port_6_name = "websocket-secure"
  service_port_7      = 8004
  service_port_7_name = "https-secondary"
  https_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

About

Modular Google Compute Engine managed instance group for Terraform.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 94.1%
  • Shell 5.9%