From a9a69edaed7dac3b700ad48309d7922c722609bb Mon Sep 17 00:00:00 2001 From: Sam Naser Date: Fri, 29 Apr 2022 11:21:41 -0700 Subject: [PATCH] fix: Use fleet_id instead of project_id for hub operations (#1238) --- modules/asm/hub.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/asm/hub.tf b/modules/asm/hub.tf index 02f9558b9e..62840bbcfd 100644 --- a/modules/asm/hub.tf +++ b/modules/asm/hub.tf @@ -17,7 +17,7 @@ resource "google_gke_hub_membership" "membership" { count = var.enable_fleet_registration ? 1 : 0 provider = google-beta - project = var.project_id + project = local.fleet_id membership_id = "${data.google_container_cluster.asm.name}-membership" endpoint { gke_cluster { @@ -29,7 +29,7 @@ resource "google_gke_hub_membership" "membership" { resource "google_gke_hub_feature" "mesh" { count = var.enable_mesh_feature ? 1 : 0 name = "servicemesh" - project = var.project_id + project = local.fleet_id location = "global" provider = google-beta }