Skip to content

Commit

Permalink
Support distributionPolicy when creating regional instance group ma…
Browse files Browse the repository at this point in the history
…nagers. (hashicorp#1092)

* Support `distributionPolicy` when creating regional instance group managers.

* Better match the API structure of distributionPolicy.

* Switch to "distribution_policy_zones".

This approach lets us more simply allow a list of zones to use, while
providing a deprecation path for implementing the distribution policy
field more holistically, avoiding backwards-incompatible changes.

* fix typo

* use slice instead of Set for flattenDP
  • Loading branch information
tobz authored and danawillow committed Mar 9, 2018
1 parent c96c7ca commit aa1400b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/r/compute_region_instance_group_manager.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ resource "google_compute_health_check" "autohealing" {
resource "google_compute_region_instance_group_manager" "appserver" {
name = "appserver-igm"
base_instance_name = "app"
instance_template = "${google_compute_instance_template.appserver.self_link}"
region = "us-central1"
base_instance_name = "app"
instance_template = "${google_compute_instance_template.appserver.self_link}"
region = "us-central1"
distribution_policy_zones = ["us-central1-a", "us-central1-f"]
target_pools = ["${google_compute_target_pool.appserver.self_link}"]
target_size = 2
Expand Down Expand Up @@ -99,6 +100,10 @@ The following arguments are supported:
* `auto_healing_policies` - (Optional, [Beta](/docs/providers/google/index.html#beta-features)) The autohealing policies for this managed instance
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).

* `distribution_policy_zones` - (Optional, [Beta](/docs/providers/google/index.html#beta-features)) The distribution policy for this managed instance
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).


The `named_port` block supports: (Include a `named_port` block for each named-port required).

* `name` - (Required) The name of the port.
Expand Down

0 comments on commit aa1400b

Please sign in to comment.