Skip to content

Commit a27a63e

Browse files
aadidenkorosbo
authored andcommitted
Add compute instance group data source (hashicorp#267)
1 parent cb83e37 commit a27a63e

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
layout: "google"
3+
page_title: "Google: google_compute_instance_group"
4+
sidebar_current: "docs-google-datasource-compute-instance-group"
5+
description: |-
6+
Get a Compute Instance Group within GCE.
7+
---
8+
9+
# google\_compute\_instance\_group
10+
11+
Get a Compute Instance Group within GCE.
12+
For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups)
13+
and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups)
14+
15+
```
16+
data "google_compute_instance_group" "all" {
17+
name = "instance-group-name"
18+
zone = "us-central1-a"
19+
}
20+
```
21+
22+
## Argument Reference
23+
24+
The following arguments are supported:
25+
26+
* `name` - (Required) The name of the instance group.
27+
28+
* `zone` - (Required) The zone of the instance group.
29+
30+
- - -
31+
32+
* `project` - (Optional) The project in which the resource belongs. If it
33+
is not provided, the provider project is used.
34+
35+
## Attributes Reference
36+
37+
The following arguments are exported:
38+
39+
* `description` - Textual description of the instance group.
40+
41+
* `instances` - List of instances in the group.
42+
43+
* `named_port` - List of named ports in the group.
44+
45+
* `network` - The URL of the network the instance group is in.
46+
47+
* `self_link` - The URI of the resource.
48+
49+
* `size` - The number of instances in the group.

google.erb

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
<li<%= sidebar_current("docs-google-datasource-compute-zones") %>>
2323
<a href="/docs/providers/google/d/google_compute_zones.html">google_compute_zones</a>
2424
</li>
25+
<li<%= sidebar_current("docs-google-datasource-compute-instance-group") %>>
26+
<a href="/docs/providers/google/d/google_compute_instance_group.html">google_compute_instance_group</a>
27+
</li>
2528
<li<%= sidebar_current("docs-google-datasource-container-versions") %>>
2629
<a href="/docs/providers/google/d/google_container_engine_versions.html">google_container_engine_versions</a>
2730
</li>

0 commit comments

Comments
 (0)