Skip to content

Commit f95b384

Browse files
authored
Add wait_for_instances field to IGM and self_link option to the IG data source (hashicorp#1222)
* Add wait_for_instances field to IGM and self_link option to the IG data source * don't be clever with errors
1 parent 4618ab7 commit f95b384

3 files changed

+14
-5
lines changed

Diff for: docs/d/google_compute_instance_group.html.markdown

+6-5
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@ data "google_compute_instance_group" "all" {
2323

2424
The following arguments are supported:
2525

26-
* `name` - (Required) The name of the instance group.
27-
28-
* `zone` - (Required) The zone of the instance group.
29-
30-
- - -
26+
* `name` - (Optional) The name of the instance group. Either `name` or `self_link` must be provided.
3127

3228
* `project` - (Optional) The ID of the project in which the resource belongs. If it
3329
is not provided, the provider project is used.
3430

31+
* `self_link` - (Optional) The self link of the instance group. Either `name` or `self_link` must be provided.
32+
33+
* `zone` - (Optional) The zone of the instance group. If referencing the instance group by name
34+
and `zone` is not provided, the provider zone is used.
35+
3536
## Attributes Reference
3637

3738
The following arguments are exported:

Diff for: docs/r/compute_instance_group_manager.html.markdown

+4
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ The following arguments are supported:
101101
instances in the group are added. Updating the target pools attribute does
102102
not affect existing instances.
103103

104+
* `wait_for_instances` - (Optional) Whether to wait for all instances to be created/updated before
105+
returning. Note that if this is set to true and the operation does not succeed, Terraform will
106+
continue trying until it times out.
107+
104108
---
105109

106110
* `auto_healing_policies` - (Optional, [Beta](/docs/providers/google/index.html#beta-features)) The autohealing policies for this managed instance

Diff for: docs/r/compute_region_instance_group_manager.html.markdown

+4
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ The following arguments are supported:
9595
instances in the group are added. Updating the target pools attribute does
9696
not affect existing instances.
9797

98+
* `wait_for_instances` - (Optional) Whether to wait for all instances to be created/updated before
99+
returning. Note that if this is set to true and the operation does not succeed, Terraform will
100+
continue trying until it times out.
101+
98102
---
99103

100104
* `auto_healing_policies` - (Optional, [Beta](/docs/providers/google/index.html#beta-features)) The autohealing policies for this managed instance

0 commit comments

Comments
 (0)