Skip to content

Commit

Permalink
Create before destroy for azuread (#1805)
Browse files Browse the repository at this point in the history
* Update password.tf

* Update module.tf

* Update module.tf
  • Loading branch information
chianw authored Sep 29, 2023
1 parent 0e8c991 commit 39bfa32
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modules/azuread/applications/module.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ resource "azuread_service_principal_password" "pwd" {
}

lifecycle {
create_before_destroy = false
#create_before_destroy = false
}
}

Expand Down
8 changes: 4 additions & 4 deletions modules/azuread/credentials/password.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resource "azuread_application_password" "key" {
}

lifecycle {
create_before_destroy = true
#create_before_destroy = true
}
}

Expand All @@ -28,7 +28,7 @@ resource "azuread_application_password" "key0" {
}

lifecycle {
create_before_destroy = true
#create_before_destroy = true
}
}

Expand All @@ -44,7 +44,7 @@ resource "azuread_application_password" "key1" {
}

lifecycle {
create_before_destroy = true
#create_before_destroy = true
}
}

Expand Down Expand Up @@ -89,4 +89,4 @@ resource "azurerm_key_vault_secret" "client_secret" {
tags = {
key = local.random_key
}
}
}
2 changes: 1 addition & 1 deletion modules/azuread/service_principal_password/module.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "azuread_service_principal_password" "pwd" {
}

lifecycle {
create_before_destroy = false
#create_before_destroy = false
}
}

Expand Down

0 comments on commit 39bfa32

Please sign in to comment.