Skip to content

Commit 80cd226

Browse files
authored
Create application secret once (#30)
1 parent 165e642 commit 80cd226

File tree

1 file changed

+6
-0
lines changed
  • infra/shared/terraform/modules/active-directory

1 file changed

+6
-0
lines changed

infra/shared/terraform/modules/active-directory/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ resource "azuread_service_principal" "application_service_principal" {
101101
resource "azuread_application_password" "application_password" {
102102
application_id = azuread_application.app_registration.id
103103
end_date = timeadd(timestamp(), "4320h") # 6 months
104+
105+
lifecycle {
106+
ignore_changes = [
107+
end_date
108+
]
109+
}
104110
}
105111

106112
# This is not guidance and is done for demo purposes. The resource below will add the

0 commit comments

Comments
 (0)