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
+70-5
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ and [API](https://cloud.google.com/compute/docs/reference/latest/regionInstanceG
15
15
16
16
~> **Note:** Use [google_compute_instance_group_manager](/docs/providers/google/r/compute_instance_group_manager.html) to create a single-zone instance group manager.
@@ -66,8 +90,15 @@ The following arguments are supported:
66
90
appending a hyphen and a random four-character string to the base instance
67
91
name.
68
92
69
-
*`instance_template` - (Required) The full URL to an instance template from
70
-
which all new instances will be created.
93
+
*`instance_template` - (Optional) The full URL to an instance template from
94
+
which all new instances will be created. Conflicts with `version` (see [documentation](https://cloud.google.com/compute/docs/instance-groups/updating-managed-instance-groups#relationship_between_instancetemplate_properties_for_a_managed_instance_group))
95
+
96
+
*`version` - (Optional) Application versions managed by this instance group. Each
97
+
version deals with a specific instance template, allowing canary release scenarios.
98
+
Conflicts with `instance_template`. Structure is documented below. Beware that
99
+
exactly one version must not specify a target size. It means that versions with
100
+
a target size will respect the setting, and the one without target size will
101
+
be applied to all remaining Instances (top level target_size - each version target_size).
71
102
72
103
*`name` - (Required) The name of the instance group manager. Must be 1-63
73
104
characters long and comply with
@@ -89,8 +120,8 @@ The following arguments are supported:
89
120
90
121
*`update_strategy` - (Optional, Default `"NONE"`) If the `instance_template`
91
122
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
123
+
instances from being restarted by Terraform. A value of `"ROLLING_UPDATE"`
124
+
is supported as [Beta feature]. A value of `"ROLLING_UPDATE"` requires
94
125
`rolling_update_policy` block to be set
95
126
96
127
*`target_size` - (Optional) The target number of running instances for this managed
@@ -157,6 +188,40 @@ The **auto_healing_policies** block supports:
157
188
*`initial_delay_sec` - (Required) The number of seconds that the managed instance group waits before
158
189
it applies autohealing policies to new instances or recently recreated instances. Between 0 and 3600.
*`instance_template` - (Required) - The full URL to an instance template from which all new instances of this version will be created.
216
+
217
+
*`target_size` - (Optional) - The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
218
+
219
+
The **target_size** block supports:
220
+
221
+
*`fixed` - (Optional), The number of instances which are managed for this version. Conflicts with `percent`.
222
+
223
+
*`percent` - (Optional), The number of instances (calculated as percentage) which are managed for this version. Conflicts with `fixed`.
224
+
160
225
## Attributes Reference
161
226
162
227
In addition to the arguments listed above, the following computed attributes are
0 commit comments