You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/r/compute_region_instance_group_manager.html.markdown
+37-2
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,12 @@ The following arguments are supported:
87
87
*`project` - (Optional) The ID of the project in which the resource belongs. If it
88
88
is not provided, the provider project is used.
89
89
90
+
*`update_strategy` - (Optional, Default `"NONE"`) If the `instance_template`
91
+
resource is modified, a value of `"NONE"` will prevent any of the managed
92
+
instances from being restarted by Terraform. A value of `"ROLLING_UPDATE"`
93
+
is supported as [Beta feature]. A value of `"ROLLING_UPDATE"` requires
94
+
`rolling_update_policy` block to be set
95
+
90
96
*`target_size` - (Optional) The target number of running instances for this managed
91
97
instance group. This value should always be explicitly set unless this resource is attached to
92
98
an autoscaler, in which case it should never be set. Defaults to `0`.
@@ -104,17 +110,46 @@ The following arguments are supported:
104
110
*`auto_healing_policies` - (Optional, [Beta](/docs/providers/google/index.html#beta-features)) The autohealing policies for this managed instance
105
111
group. You can specify only one value. Structure is documented below. For more information, see the [official documentation](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances#monitoring_groups).
106
112
113
+
*`rolling_update_policy` - (Optional, [Beta](/docs/providers/google/index.html#beta-features)) The update policy for this managed instance group. Structure is documented below. For more information, see the [official documentation](https://cloud.google.com/compute/docs/instance-groups/updating-managed-instance-groups) and [API](https://cloud.google.com/compute/docs/reference/rest/beta/regionInstanceGroupManagers/patch)
114
+
107
115
*`distribution_policy_zones` - (Optional, [Beta](/docs/providers/google/index.html#beta-features)) The distribution policy for this managed instance
108
116
group. You can specify one or more values. For more information, see the [official documentation](https://cloud.google.com/compute/docs/instance-groups/distributing-instances-with-regional-instance-groups#selectingzones).
109
117
118
+
The **rolling_update_policy** block supports:
119
+
120
+
```hcl
121
+
rolling_update_policy{
122
+
type = "PROACTIVE"
123
+
minimal_action = "REPLACE"
124
+
max_surge_percent = 20
125
+
max_unavailable_fixed = 2
126
+
min_ready_sec = 50
127
+
}
128
+
```
129
+
130
+
*`minimal_action` - (Required) - Minimal action to be taken on an instance. Valid values are `"RESTART"`, `"REPLACE"`
131
+
132
+
*`type` - (Required) - The type of update. Valid values are `"OPPORTUNISTIC"`, `"PROACTIVE"`
110
133
111
-
The `named_port` block supports: (Include a `named_port` block for each named-port required).
134
+
*`max_surge_fixed` - (Optional), The maximum number of instances that can be created above the specified targetSize during the update process. Conflicts with `max_surge_percent`. It has to be either 0 or at least equal to the number of zones. If fixed values are used, at least one of `max_unavailable_fixed` or `max_surge_fixed` must be greater than 0.
135
+
136
+
*`max_surge_percent` - (Optional), The maximum number of instances(calculated as percentage) that can be created above the specified targetSize during the update process. Conflicts with `max_surge_fixed`. Percent value is only allowed for regional managed instance groups with size at least 10.
137
+
138
+
*`max_unavailable_fixed` - (Optional), The maximum number of instances that can be unavailable during the update process. Conflicts with `max_unavailable_percent`. It has to be either 0 or at least equal to the number of zones. If fixed values are used, at least one of `max_unavailable_fixed` or `max_surge_fixed` must be greater than 0.
139
+
140
+
*`max_unavailable_percent` - (Optional), The maximum number of instances(calculated as percentage) that can be unavailable during the update process. Conflicts with `max_unavailable_fixed`. Percent value is only allowed for regional managed instance groups with size at least 10.
141
+
142
+
*`min_ready_sec` - (Optional), Minimum number of seconds to wait for after a newly created instance becomes available. This value must be from range [0, 3600]
143
+
- - -
144
+
145
+
The **named_port** block supports: (Include a `named_port` block for each named-port required).
112
146
113
147
*`name` - (Required) The name of the port.
114
148
115
149
*`port` - (Required) The port number.
150
+
- - -
116
151
117
-
The `auto_healing_policies` block supports:
152
+
The **auto_healing_policies** block supports:
118
153
119
154
*`health_check` - (Required) The health check resource that signals autohealing.
0 commit comments