mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-05 02:01:05 +00:00
Merge pull request #3892 from lwander/b-gcp-instance-group-restart
provider/google: Fix instance group manager instance restart policy
This commit is contained in:
commit
1cc482772f
@ -20,6 +20,7 @@ resource "google_compute_instance_group_manager" "foobar" {
|
|||||||
description = "Terraform test instance group manager"
|
description = "Terraform test instance group manager"
|
||||||
name = "terraform-test"
|
name = "terraform-test"
|
||||||
instance_template = "${google_compute_instance_template.foobar.self_link}"
|
instance_template = "${google_compute_instance_template.foobar.self_link}"
|
||||||
|
update_strategy= "NONE"
|
||||||
target_pools = ["${google_compute_target_pool.foobar.self_link}"]
|
target_pools = ["${google_compute_target_pool.foobar.self_link}"]
|
||||||
base_instance_name = "foobar"
|
base_instance_name = "foobar"
|
||||||
zone = "us-central1-a"
|
zone = "us-central1-a"
|
||||||
@ -43,6 +44,12 @@ group manager.
|
|||||||
* `instance_template` - (Required) The full URL to an instance template from
|
* `instance_template` - (Required) The full URL to an instance template from
|
||||||
which all new instances will be created.
|
which all new instances will be created.
|
||||||
|
|
||||||
|
* `update_strategy` - (Optional, Default `"RESTART"`) If the `instance_template` resource is
|
||||||
|
modified, a value of `"NONE"` will prevent any of the managed instances from
|
||||||
|
being restarted by Terraform. A value of `"RESTART"` will restart all of the
|
||||||
|
instances at once. In the future, as the GCE API matures we will support
|
||||||
|
`"ROLLING_UPDATE"` as well.
|
||||||
|
|
||||||
* `name` - (Required) The name of the instance group manager. Must be 1-63
|
* `name` - (Required) The name of the instance group manager. Must be 1-63
|
||||||
characters long and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
|
characters long and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
|
||||||
Supported characters include lowercase letters, numbers, and hyphens.
|
Supported characters include lowercase letters, numbers, and hyphens.
|
||||||
|
Loading…
Reference in New Issue
Block a user