diff --git a/modules/compute-mig/README.md b/modules/compute-mig/README.md index e6e8e9ac3..dae1d76e8 100644 --- a/modules/compute-mig/README.md +++ b/modules/compute-mig/README.md @@ -430,6 +430,17 @@ module "nginx-mig" { name = "mig-test" target_size = 3 instance_template = module.nginx-template.template.self_link + distribution_policy = { + target_shape = "BALANCED" # "ANY_SINGLE_ZONE" + } + update_policy = { + minimal_action = "REFRESH" + max_unavailable = { + fixed = 3 + } + type = "OPPORTUNISTIC" + regional_redistribution_type = "NONE" + } instance_flexibility_policy_selections = { preferred-1 = { rank = 1 @@ -465,7 +476,7 @@ module "nginx-mig" { | [description](variables.tf#L89) | Optional description used for all resources managed by this module. | string | | "Terraform managed." | | [distribution_policy](variables.tf#L95) | Distribution policy for regional MIG. | object({…}) | | null | | [health_check_config](variables.tf#L104) | Optional auto-created health check configuration, use the output self-link to set it in the auto healing policy. Refer to examples for usage. | object({…}) | | null | -| [instance_flexibility_policy_selections](variables.tf#L177) | Instance flexibility policy selections. Only applicable to regional intances. | map(object({…})) | | {} | +| [instance_flexibility_policy_selections](variables.tf#L177) | Instance flexibility policy selections. Only applicable to regional instances. | map(object({…})) | | {} | | [named_ports](variables.tf#L206) | Named ports. | map(number) | | null | | [stateful_config](variables.tf#L217) | Stateful configuration for individual instances. | map(object({…})) | | {} | | [stateful_disks](variables.tf#L236) | Stateful disk configuration applied at the MIG level to all instances, in device name => on permanent instance delete rule as boolean. | map(bool) | | {} | diff --git a/modules/compute-mig/variables.tf b/modules/compute-mig/variables.tf index 31f84cd2a..f36abb732 100644 --- a/modules/compute-mig/variables.tf +++ b/modules/compute-mig/variables.tf @@ -175,7 +175,7 @@ variable "health_check_config" { } variable "instance_flexibility_policy_selections" { - description = "Instance flexibility policy selections. Only applicable to regional intances." + description = "Instance flexibility policy selections. Only applicable to regional instances." type = map(object({ rank = number machine_types = list(string)