Skip to content

Commit dfd573c

Browse files
JohannesRudolphmeshkodiak[bot]
authored andcommitted
feat: add an experimental move of submodules for migration from v0.1.0
1 parent f3a3619 commit dfd573c

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

main.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,19 @@ module "uami_blueprint_user_principal" {
5151
}
5252

5353
data "azuread_client_config" "current" {}
54+
55+
# facilitate migration from v0.1.0 of the module
56+
moved {
57+
from = module.replicator_spp
58+
to = module.replicator_service_principal
59+
}
60+
61+
moved {
62+
from = module.kraken_spp
63+
to = module.kraken_service_principal
64+
}
65+
66+
moved {
67+
from = module.idp_lookup_spp
68+
to = module.idp_lookup_service_principal
69+
}

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,3 @@ resource "azuread_service_principal_password" "service_principal_pw" {
157157
# data "azuread_application" "blueprint_service_principal" {
158158
# application_id = "f71766dc-90d9-4b7d-bd9d-4499c4331c3f"
159159
# }
160-
161-
# migration from v0.1.0 of the
162-
moved {
163-
from = replicator_spp[0].azurerm_role_definition.meshcloud_replicator
164-
to = replicator_service_principal[0].azurerm_role_definition.meshcloud_replicator
165-
}

0 commit comments

Comments
 (0)