Skip to content

Latest commit

 

History

History

simple

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

mig-simple

This is a simple, minimal example of how to use the MIG module to create a managed instance group.

Inputs

Name Description Type Default Required
project_id The GCP project to use for integration tests string n/a yes
region The GCP region to create and test resources in string "us-central1" no
service_account Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template#service_account.
object({
email = string
scopes = set(string)
})
null no
subnetwork The subnetwork to host the compute instances in any n/a yes
target_size The target number of running instances for this managed instance group. This value should always be explicitly set unless this resource is attached to an autoscaler, in which case it should never be set. any n/a yes

Outputs

Name Description
region The GCP region to create and test resources in
self_link Self-link of the managed instance group