Workaround target pool issue by listing instances as zone/name

* Instances can be listed by zone/name or self_link URL, but the
provider desires they be in zone/name form, which causes a diff
* https://github.com/terraform-providers/terraform-provider-google/issues/46
This commit is contained in:
Dalton Hubble 2017-11-05 14:07:05 -08:00
parent 2b0296d671
commit 77fc14db71
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ resource "google_compute_target_pool" "controllers" {
name = "${var.cluster_name}-controller-pool" name = "${var.cluster_name}-controller-pool"
instances = [ instances = [
"${google_compute_instance.controllers.*.self_link}", "${formatlist("%s/%s", google_compute_instance.controllers.*.zone, google_compute_instance.controllers.*.name)}"
] ]
health_checks = [ health_checks = [