From 3c9aca10a383b9a420a4531fc67d6261170091d9 Mon Sep 17 00:00:00 2001 From: jiangpengcheng Date: Wed, 8 May 2024 10:36:36 +0800 Subject: [PATCH 1/2] Add outputs to Azure README --- modules/azure/README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/modules/azure/README.md b/modules/azure/README.md index 711060b..1722338 100644 --- a/modules/azure/README.md +++ b/modules/azure/README.md @@ -116,6 +116,31 @@ module "azure-managed-cloud" { module.azure-sn-cloud-manager ] } + +output "client_id" { + value = module.azure-managed-cloud.sn_automation_client_id + description = "The client ID of the sn automation service principal for StreamNative Cloud automation" +} + +output "support_client_id" { + value = module.azure-managed-cloud.sn_support_client_id + description = "The client ID of the sn support service principal for StreamNative Cloud support access" +} + +output "subscription_id" { + value = module.azure-managed-cloud.subscription_id + description = "The subscription ID of the AKS cluster" +} + +output "tenant_id" { + value = module.azure-managed-cloud.tenant_id + description = "The tenant ID of the AKS cluster" +} + +output "resource_group_name" { + value = module.azure-managed-cloud.resource_group_name + description = "The name of the resource group where the AKS cluster will be created" +} ``` To run the example, execute the following commands: From 409b80026f3681e9afc46a4a4879a6a531edb013 Mon Sep 17 00:00:00 2001 From: jiangpengcheng Date: Wed, 8 May 2024 16:35:33 +0800 Subject: [PATCH 2/2] Update main README --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index c67930e..367c982 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,31 @@ module "sn-managed-cloud" { module.azure-sn-cloud-manager ] } + +output "client_id" { + value = module.sn-managed-cloud.sn_automation_client_id + description = "The client ID of the sn automation service principal for StreamNative Cloud automation" +} + +output "support_client_id" { + value = module.sn-managed-cloud.sn_support_client_id + description = "The client ID of the sn support service principal for StreamNative Cloud support access" +} + +output "subscription_id" { + value = module.sn-managed-cloud.subscription_id + description = "The subscription ID of the AKS cluster" +} + +output "tenant_id" { + value = module.sn-managed-cloud.tenant_id + description = "The tenant ID of the AKS cluster" +} + +output "resource_group_name" { + value = module.sn-managed-cloud.resource_group_name + description = "The name of the resource group where the AKS cluster will be created" +} ``` ## Examples