Skip to content

Commit f08fe9c

Browse files
committed
feat: add moved to metering module, add provider block to examples
1 parent 65c943f commit f08fe9c

File tree

9 files changed

+66
-14
lines changed

9 files changed

+66
-14
lines changed

examples/azure-integration-preprovisioned-subscriptions/main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ terraform {
1111
}
1212
}
1313

14+
provider "azurerm" {
15+
# Configuration options
16+
features {}
17+
}
18+
19+
provider "azuread" {
20+
# Configuration options
21+
}
22+
1423
module "meshplatform" {
1524
source = "meshcloud/meshplatform/azure"
1625

examples/azure-integration-preprovisioned-subscriptions/outputs.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
output "replicator_service_principal" {
1+
output "replicator_credentials" {
22
description = "Replicator Service Principal."
33
value = module.meshplatform.replicator_service_principal
44
}
55

6-
output "replicator_service_principal_password" {
6+
output "replicator_client_secret" {
77
description = "Password for Replicator Service Principal."
88
value = module.meshplatform.replicator_service_principal_password
99
sensitive = true
1010
}
1111

12-
output "metering_service_principal" {
12+
output "metering_credentials" {
1313
description = "Metering Service Principal."
1414
value = module.meshplatform.metering_service_principal
1515
}
1616

17-
output "metering_service_principal_password" {
17+
output "metering_client_secret" {
1818
description = "Password for Metering Service Principal."
1919
value = module.meshplatform.metering_service_principal_password
2020
sensitive = true

examples/azure-integration-with-additional-resource-access/main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ terraform {
88
}
99
}
1010

11+
provider "azurerm" {
12+
# Configuration options
13+
features {}
14+
}
15+
16+
provider "azuread" {
17+
# Configuration options
18+
}
19+
1120
module "meshplatform" {
1221
source = "meshcloud/meshplatform/azure"
1322

examples/azure-integration-with-additional-resource-access/outputs.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11

2-
output "replicator_service_principal" {
2+
output "replicator_credentials" {
33
description = "Replicator Service Principal."
44
value = module.meshplatform.replicator_service_principal
55
}
66

7-
output "replicator_service_principal_password" {
7+
output "replicator_client_secret" {
88
description = "Password for Replicator Service Principal."
99
value = module.meshplatform.replicator_service_principal_password
1010
sensitive = true
1111
}
1212

13-
output "metering_service_principal" {
13+
output "metering_credentials" {
1414
description = "Metering Service Principal."
1515
value = module.meshplatform.metering_service_principal
1616
}
1717

18-
output "metering_service_principal_password" {
18+
output "metering_client_secret" {
1919
description = "Password for Metering Service Principal."
2020
value = module.meshplatform.metering_service_principal_password
2121
sensitive = true

examples/azure-integration-with-uami-blueprint-user-principal/main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ terraform {
88
}
99
}
1010

11+
provider "azurerm" {
12+
# Configuration options
13+
features {}
14+
}
15+
16+
provider "azuread" {
17+
# Configuration options
18+
}
19+
1120
module "meshplatform" {
1221
source = "meshcloud/meshplatform/azure"
1322

examples/azure-integration-with-uami-blueprint-user-principal/outputs.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
output "replicator_service_principal" {
1+
output "replicator_credentials" {
22
description = "Replicator Service Principal."
33
value = module.meshplatform.replicator_service_principal
44
}
55

6-
output "replicator_service_principal_password" {
6+
output "replicator_client_secret" {
77
description = "Password for Replicator Service Principal."
88
value = module.meshplatform.replicator_service_principal_password
99
sensitive = true
1010
}
1111

12-
output "metering_service_principal" {
12+
output "metering_credentials" {
1313
description = "Metering Service Principal."
1414
value = module.meshplatform.metering_service_principal
1515
}
1616

17-
output "metering_service_principal_password" {
17+
output "metering_client_secret" {
1818
description = "Password for Metering Service Principal."
1919
value = module.meshplatform.metering_service_principal_password
2020
sensitive = true

modules/meshcloud-metering-service-principal/module.tf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,28 @@ resource "azuread_application_password" "application_pw" {
135135
# from = azuread_application_password.spp_pw
136136
# to = azuread_application_password.service_principal_pw
137137
# }
138+
139+
moved {
140+
from = azurerm_role_assignment.meshcloud_kraken
141+
to = azurerm_role_assignment.meshcloud_metering
142+
}
143+
144+
moved {
145+
from = azurerm_role_definition.meshcloud_kraken_cloud_inventory_role
146+
to = azurerm_role_definition.meshcloud_metering_cloud_inventory_role
147+
}
148+
149+
moved {
150+
from = azurerm_role_assignment.meshcloud_kraken_cloud_inventory
151+
to = azurerm_role_assignment.meshcloud_metering_cloud_inventory
152+
}
153+
154+
moved {
155+
from = azuread_application.meshcloud_kraken
156+
to = azuread_application.meshcloud_metering
157+
}
158+
159+
moved {
160+
from = azuread_service_principal.meshcloud_kraken
161+
to = azuread_service_principal.meshcloud_metering
162+
}

modules/meshcloud-metering-service-principal/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ output "credentials" {
33
value = {
44
Enterprise_Application_Object_ID = azuread_service_principal.meshcloud_metering.id
55
Application_Client_ID = azuread_application.meshcloud_metering.application_id
6-
Client_Secret = "Execute `terraform output service_principal_password` to see the password"
6+
Client_Secret = "Execute `terraform output metering_service_principal_password` to see the password"
77
}
88
}
99

modules/meshcloud-replicator-service-principal/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ output "credentials" {
33
value = {
44
Enterprise_Application_Object_ID = azuread_service_principal.meshcloud_replicator.id
55
Application_Client_ID = azuread_application.meshcloud_replicator.application_id
6-
Client_Secret = "Execute `terraform output service_principal_password` to see the password"
6+
Client_Secret = "Execute `terraform output replicator_service_principal_password` to see the password"
77
}
88
}
99

0 commit comments

Comments
 (0)