diff --git a/modules/compute-mig/README.md b/modules/compute-mig/README.md
index d8123e3ac8..ba922670df 100644
--- a/modules/compute-mig/README.md
+++ b/modules/compute-mig/README.md
@@ -417,10 +417,10 @@ module "nginx-mig" {
| name | description | type | required | default |
|---|---|:---:|:---:|:---:|
-| [instance_template](variables.tf#L174) | Instance template for the default version. | string
| ✓ | |
-| [location](variables.tf#L179) | Compute zone or region. | string
| ✓ | |
-| [name](variables.tf#L184) | Managed group name. | string
| ✓ | |
-| [project_id](variables.tf#L195) | Project id. | string
| ✓ | |
+| [instance_template](variables.tf#L177) | Instance template for the default version. | string
| ✓ | |
+| [location](variables.tf#L182) | Compute zone or region. | string
| ✓ | |
+| [name](variables.tf#L187) | Managed group name. | string
| ✓ | |
+| [project_id](variables.tf#L198) | Project id. | string
| ✓ | |
| [all_instances_config](variables.tf#L17) | Metadata and labels set to all instances in the group. | object({…})
| | null
|
| [auto_healing_policies](variables.tf#L26) | Auto-healing policies for this group. | object({…})
| | null
|
| [autoscaler_config](variables.tf#L35) | Optional autoscaler configuration. | object({…})
| | null
|
@@ -428,14 +428,14 @@ 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
|
-| [named_ports](variables.tf#L189) | Named ports. | map(number)
| | null
|
-| [stateful_config](variables.tf#L200) | Stateful configuration for individual instances. | map(object({…}))
| | {}
|
-| [stateful_disks](variables.tf#L219) | Stateful disk configuration applied at the MIG level to all instances, in device name => on permanent instance delete rule as boolean. | map(bool)
| | {}
|
-| [target_pools](variables.tf#L226) | Optional list of URLs for target pools to which new instances in the group are added. | list(string)
| | []
|
-| [target_size](variables.tf#L232) | Group target size, leave null when using an autoscaler. | number
| | null
|
-| [update_policy](variables.tf#L238) | Update policy. Minimal action and type are required. | object({…})
| | null
|
-| [versions](variables.tf#L259) | Additional application versions, target_size is optional. | map(object({…}))
| | {}
|
-| [wait_for_instances](variables.tf#L272) | Wait for all instances to be created/updated before returning. | object({…})
| | null
|
+| [named_ports](variables.tf#L192) | Named ports. | map(number)
| | null
|
+| [stateful_config](variables.tf#L203) | Stateful configuration for individual instances. | map(object({…}))
| | {}
|
+| [stateful_disks](variables.tf#L222) | Stateful disk configuration applied at the MIG level to all instances, in device name => on permanent instance delete rule as boolean. | map(bool)
| | {}
|
+| [target_pools](variables.tf#L229) | Optional list of URLs for target pools to which new instances in the group are added. | list(string)
| | []
|
+| [target_size](variables.tf#L235) | Group target size, leave null when using an autoscaler. | number
| | null
|
+| [update_policy](variables.tf#L241) | Update policy. Minimal action and type are required. | object({…})
| | null
|
+| [versions](variables.tf#L262) | Additional application versions, target_size is optional. | map(object({…}))
| | {}
|
+| [wait_for_instances](variables.tf#L275) | Wait for all instances to be created/updated before returning. | object({…})
| | null
|
## Outputs
diff --git a/modules/compute-mig/variables.tf b/modules/compute-mig/variables.tf
index ecddd6687a..30f2ce9651 100644
--- a/modules/compute-mig/variables.tf
+++ b/modules/compute-mig/variables.tf
@@ -165,7 +165,10 @@ variable "health_check_config" {
condition = (
(try(var.health_check_config.grpc, null) == null ? 0 : 1) +
(try(var.health_check_config.http, null) == null ? 0 : 1) +
- (try(var.health_check_config.tcp, null) == null ? 0 : 1) <= 1
+ (try(var.health_check_config.http2, null) == null ? 0 : 1) +
+ (try(var.health_check_config.https, null) == null ? 0 : 1) +
+ (try(var.health_check_config.tcp, null) == null ? 0 : 1) +
+ (try(var.health_check_config.ssl, null) == null ? 0 : 1) <= 1
)
error_message = "Only one health check type can be configured at a time."
}