Skip to content

Commit

Permalink
fix: Use fleet_id instead of project_id for hub operations (terraform…
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Naser authored Apr 29, 2022
1 parent 0058fad commit 32d80cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/asm/hub.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
}

0 comments on commit 32d80cb

Please sign in to comment.