Skip to content

Commit fc66d8b

Browse files
committed
chore: cleanup outputs
1 parent 9e5e40e commit fc66d8b

File tree

7 files changed

+29
-65
lines changed

7 files changed

+29
-65
lines changed

examples/basic-azure-integration/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# It is recommended to setup a backend to store the terraform state file
22
# Removing the backend leads to terraform state output stored in the local filesystem.
3+
# See https://www.terraform.io/language/settings/backends for more details
34
terraform {
45
backend "gcs" {
56
prefix = "meshplatforms/azure"
Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,33 @@
11

22
output "replicator_spp" {
33
description = "Replicator Service Principal."
4-
value = {
5-
output = module.meshplatform.replicator_spp
6-
}
4+
value = module.meshplatform.replicator_spp
75
}
86

97
output "replicator_spp_password" {
108
description = "Password for Replicator Service Principal."
11-
value = {
12-
password = module.meshplatform.replicator_spp_password
13-
}
14-
sensitive = true
9+
value = module.meshplatform.replicator_spp_password
10+
sensitive = true
1511
}
1612

1713
output "kraken_spp" {
1814
description = "Kraken Service Principal."
19-
value = {
20-
output = module.meshplatform.kraken_spp
21-
}
15+
value = module.meshplatform.kraken_spp
2216
}
2317

2418
output "kraken_spp_password" {
2519
description = "Password for Kraken Service Principal."
26-
value = {
27-
password = module.meshplatform.kraken_spp_password
28-
}
29-
sensitive = true
20+
value = module.meshplatform.kraken_spp_password
21+
sensitive = true
3022
}
3123

3224
output "uami_blueprint_user_principal" {
3325
description = "UAMI Blueprint Assignment Service Principal."
34-
value = {
35-
output = module.meshplatform.uami_blueprint_user_principal
36-
}
26+
value = module.meshplatform.uami_blueprint_user_principal
3727
}
3828

3929
output "uami_blueprint_user_principal_password" {
4030
description = "Password for UAMI Blueprint Assignment Service Principal."
41-
value = {
42-
password = module.meshplatform.uami_blueprint_user_principal_password
43-
}
44-
sensitive = true
31+
value = module.meshplatform.uami_blueprint_user_principal_password
32+
sensitive = true
4533
}

modules/meshcloud-idp-lookup-spp/outputs.tf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ output "service_principal" {
99

1010
output "service_principal_password" {
1111
description = "Password for the Service Principal."
12-
value = {
13-
password = azuread_service_principal_password.spp_pw.value
14-
}
15-
sensitive = true
12+
value = azuread_service_principal_password.spp_pw.value
13+
sensitive = true
1614
}
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
output "service_principal" {
22
value = {
3-
INFO = "On the very first time running tf apply, you have to run 'az ad app permission admin-consent --id ${azuread_service_principal.meshcloud_kraken.application_id}' or click the 'Grant Admin consent button' in the portal"
43
object_id = azuread_service_principal.meshcloud_kraken.id
54
app_id = azuread_service_principal.meshcloud_kraken.application_id
65
password = "Execute `terraform output kraken_spp_password` to see the password"
@@ -9,8 +8,6 @@ output "service_principal" {
98

109
output "service_principal_password" {
1110
description = "Password for the Service Principal."
12-
value = {
13-
password = azuread_service_principal_password.spp_pw.value
14-
}
15-
sensitive = true
11+
value = azuread_service_principal_password.spp_pw.value
12+
sensitive = true
1613
}

modules/meshcloud-replicator-spp/outputs.tf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ output "service_principal" {
99

1010
output "service_principal_password" {
1111
description = "Password for the Service Principal."
12-
value = {
13-
password = azuread_service_principal_password.spp_pw.value
14-
}
15-
sensitive = true
12+
value = azuread_service_principal_password.spp_pw.value
13+
sensitive = true
1614
}

modules/uami-blueprint-user-principal/outputs.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ output "service_principal" {
77
}
88

99
output "service_principal_password" {
10-
value = {
11-
password = azuread_service_principal_password.spp_pw.value
12-
}
10+
value = azuread_service_principal_password.spp_pw.value
1311
sensitive = true
1412
}

outputs.tf

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,44 @@
11

22
output "replicator_spp" {
33
description = "Replicator Service Principal."
4-
value = {
5-
output = length(module.replicator_spp) > 0 ? module.replicator_spp[0].service_principal : null
6-
}
4+
value = length(module.replicator_spp) > 0 ? module.replicator_spp[0].service_principal : null
75
}
86

97
output "replicator_spp_password" {
108
description = "Password for Replicator Service Principal."
11-
value = {
12-
password = length(module.replicator_spp) > 0 ? module.replicator_spp[0].service_principal_password : null
13-
}
14-
sensitive = true
9+
value = length(module.replicator_spp) > 0 ? module.replicator_spp[0].service_principal_password : null
10+
sensitive = true
1511
}
1612

1713
output "kraken_spp" {
1814
description = "Kraken Service Principal."
19-
value = {
20-
output = length(module.kraken_spp) > 0 ? module.kraken_spp[0].service_principal : null
21-
}
15+
value = length(module.kraken_spp) > 0 ? module.kraken_spp[0].service_principal : null
2216
}
2317

2418
output "kraken_spp_password" {
2519
description = "Password for Kraken Service Principal."
26-
value = {
27-
password = length(module.kraken_spp) > 0 ? module.kraken_spp[0].service_principal_password : null
28-
}
29-
sensitive = true
20+
value = length(module.kraken_spp) > 0 ? module.kraken_spp[0].service_principal_password : null
21+
sensitive = true
3022
}
3123

3224
output "idp_lookup_spp" {
3325
description = "IDP Lookup Service Principal."
34-
value = {
35-
output = length(module.idp_lookup_spp) > 0 ? module.idp_lookup_spp[0].service_principal : null
36-
}
26+
value = length(module.idp_lookup_spp) > 0 ? module.idp_lookup_spp[0].service_principal : null
3727
}
3828

3929
output "idp_lookup_spp_password" {
4030
description = "Password for IDP Lookup Service Principal."
41-
value = {
42-
password = length(module.idp_lookup_spp) > 0 ? module.idp_lookup_spp[0].service_principal_password : null
43-
}
44-
sensitive = true
31+
value = length(module.idp_lookup_spp) > 0 ? module.idp_lookup_spp[0].service_principal_password : null
32+
sensitive = true
4533
}
4634

4735
output "uami_blueprint_user_principal" {
4836
description = "UAMI Blueprint Assignment Service Principal."
49-
value = {
50-
output = length(module.uami_blueprint_user_principal) > 0 ? module.uami_blueprint_user_principal[0].service_principal : null
51-
}
37+
value = length(module.uami_blueprint_user_principal) > 0 ? module.uami_blueprint_user_principal[0].service_principal : null
5238
}
5339

5440
output "uami_blueprint_user_principal_password" {
5541
description = "Password for UAMI Blueprint Assignment Service Principal."
56-
value = {
57-
password = length(module.uami_blueprint_user_principal) > 0 ? module.uami_blueprint_user_principal[0].service_principal_password : null
58-
}
59-
sensitive = true
42+
value = length(module.uami_blueprint_user_principal) > 0 ? module.uami_blueprint_user_principal[0].service_principal_password : null
43+
sensitive = true
6044
}

0 commit comments

Comments
 (0)