managed-instance-group

GoogleCloudPlatform/managed-instance-group/google

Terraform Module HCL GOOGLE ✓ Verified

Modular Google Compute Engine managed instance group for Terraform.

Install
module "managed-instance-group" {
source = "GoogleCloudPlatform/managed-instance-group/google"
version = "1.1.15"
}
plain text: /constructs/tfmod-googlecloudplatform-managed-instance-group-google/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (9)
NameTypeDescriptionDefault
http_health_checkstringEnable or disable the http health check for auto healing.true
hc_unhealthy_thresholdstringHealth check, unhealthy threshold.10
hc_pathstringHealth check, the http path to check."/"
ssh_fw_rulestringWhether or not the SSH Firewall Rule should be createdtrue
hc_initial_delaystringHealth check, intial delay in seconds.30
hc_intervalstringHealth check, check interval in seconds.30
hc_timeoutstringHealth check, timeout in seconds.10
hc_healthy_thresholdstringHealth check, healthy threshold.1
hc_portstringHealth check, health check port, if different from var.service_port, if not give""
Outputs (12)
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 curr
service_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 group
region_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
Resources (8)
google_compute_autoscalergoogle_compute_firewallgoogle_compute_health_checkgoogle_compute_instance_group_managergoogle_compute_instance_templategoogle_compute_region_autoscalergoogle_compute_region_instance_group_managernull_resource
Details
FrameworkTerraform Module
LanguageHCL
Version1.1.15
Cloud GOOGLE
★ Stars61
Forks138
Total downloads171.1k
Inputs9
Outputs12
Resources8
Examples4
LicenseApache-2.0
NamespaceGoogleCloudPlatform
Updated