diff --git a/modules/fleet-membership/README.md b/modules/fleet-membership/README.md index 9b1fdf6f5..dd7e45cc1 100644 --- a/modules/fleet-membership/README.md +++ b/modules/fleet-membership/README.md @@ -37,6 +37,8 @@ To deploy this config: | Name | Description | |------|-------------| | cluster\_membership\_id | The ID of the hub membership | +| location | The location of the hub membership. | +| project\_id | The project of the hub membership. | | wait | An output to use when you want to depend on registration finishing | diff --git a/modules/fleet-membership/outputs.tf b/modules/fleet-membership/outputs.tf index fd605c91d..1531ea4ad 100644 --- a/modules/fleet-membership/outputs.tf +++ b/modules/fleet-membership/outputs.tf @@ -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. @@ -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" { + # TODO: google_gke_hub_membership b/300473592 + description = "The location of the hub membership." + value = "global" +}