Skip to content

Commit b1f39cd

Browse files
committed
Merge branch 'main' into feature/docs-output
2 parents 32181c5 + c12bafe commit b1f39cd

File tree

2 files changed

+9
-28
lines changed

2 files changed

+9
-28
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ The documentation includes:
7676
```sh
7777
# The JSON output contains sensitive values that must not be transmitted anywhere other then the platform config screen in meshStack.
7878
terraform output -json
79+
80+
# Get comprehensive documentation about your deployment
81+
terraform output documentation
82+
83+
# Save documentation to file
84+
terraform output -raw documentation > meshplatform-docs.md
7985
```
8086
8187
### Using CLI

outputs.tf

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -57,39 +57,14 @@ output "azure_ad_tenant_id" {
5757
value = data.azuread_client_config.current.tenant_id
5858
}
5959

60-
locals {
61-
# Create a hash of all relevant variables to detect when configuration actually changes
62-
config_hash = md5(jsonencode({
63-
replicator_enabled = var.replicator_enabled || var.replicator_rg_enabled
64-
metering_enabled = var.metering_enabled
65-
sso_enabled = var.sso_enabled
66-
mca_enabled = var.mca != null
67-
replicator_service_principal_name = var.replicator_service_principal_name
68-
metering_service_principal_name = var.metering_service_principal_name
69-
sso_service_principal_name = var.sso_service_principal_name
70-
mca_service_principal_names = var.mca != null ? var.mca.service_principal_names : []
71-
replicator_custom_role_scope = var.replicator_custom_role_scope
72-
replicator_assignment_scopes = var.replicator_assignment_scopes
73-
metering_assignment_scopes = var.metering_assignment_scopes
74-
can_cancel_subscriptions_in_scopes = var.can_cancel_subscriptions_in_scopes
75-
can_delete_rgs_in_scopes = var.can_delete_rgs_in_scopes
76-
create_passwords = var.create_passwords
77-
workload_identity_federation = var.workload_identity_federation
78-
sso_meshstack_idp_domain = var.sso_meshstack_idp_domain
79-
sso_identity_provider_alias = var.sso_identity_provider_alias
80-
sso_app_role_assignment_required = var.sso_app_role_assignment_required
81-
administrative_unit_name = var.administrative_unit_name
82-
application_owners = var.application_owners
83-
mca_config = var.mca
84-
}))
85-
}
60+
8661

8762
output "documentation" {
8863
description = "Complete module documentation in markdown format"
8964
value = <<-EOT
9065
# terraform-azure-meshplatform Documentation
9166
92-
Configuration Hash: ${local.config_hash}
67+
9368
9469
## Overview
9570
@@ -267,6 +242,6 @@ terraform output -raw documentation > meshplatform-docs.md
267242
For issues and questions regarding this module, please refer to the project repository or contact your meshStack administrator.
268243
269244
---
270-
*This documentation was automatically generated by Terraform (config hash: ${local.config_hash})*
245+
*This documentation was automatically generated by Terraform*
271246
EOT
272247
}

0 commit comments

Comments
 (0)