From 77fc14db7192e387471e980f3fa67043191aefba Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Sun, 5 Nov 2017 14:07:05 -0800 Subject: [PATCH] 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 --- google-cloud/container-linux/kubernetes/controllers/network.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud/container-linux/kubernetes/controllers/network.tf b/google-cloud/container-linux/kubernetes/controllers/network.tf index 97fb3ac5..9d334495 100644 --- a/google-cloud/container-linux/kubernetes/controllers/network.tf +++ b/google-cloud/container-linux/kubernetes/controllers/network.tf @@ -30,7 +30,7 @@ resource "google_compute_target_pool" "controllers" { name = "${var.cluster_name}-controller-pool" instances = [ - "${google_compute_instance.controllers.*.self_link}", + "${formatlist("%s/%s", google_compute_instance.controllers.*.zone, google_compute_instance.controllers.*.name)}" ] health_checks = [