Skip to content

Commit

Permalink
feat: add project and location output to fleet-membership
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody committed Sep 18, 2023
1 parent 6b927e5 commit aa3e72a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion modules/fleet-membership/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2022 Google LLC
* Copyright 2022-2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -23,3 +23,14 @@ output "wait" {
description = "An output to use when you want to depend on registration finishing"
value = var.enable_fleet_registration ? google_gke_hub_membership.primary[0].membership_id : local.gke_hub_membership_name
}

output "project_id" {
description = "The project of the hub membership."
value = local.hub_project_id
}

output "location" {
# google_gke_hub_membership currently uses the global location
description = "The location of the hub membership."
value = "global"
}

0 comments on commit aa3e72a

Please sign in to comment.