Skip to content

Commit

Permalink
fix: to avoid password reset for existing additional users for mssql (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Anand-chenepalli committed Aug 8, 2023
1 parent b4430f9 commit 923cd11
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions modules/mssql/main.tf
Expand Up @@ -180,8 +180,14 @@ resource "google_sql_database" "additional_databases" {
}

resource "random_password" "user-password" {
length = 8
special = true
length = 8
special = true

lifecycle {
ignore_changes = [
special, length
]
}
depends_on = [null_resource.module_depends_on, google_sql_database_instance.default]
}

Expand All @@ -190,8 +196,14 @@ resource "random_password" "additional_passwords" {
keepers = {
name = google_sql_database_instance.default.name
}
length = 32
special = true
length = 32
special = true

lifecycle {
ignore_changes = [
special, length
]
}
depends_on = [null_resource.module_depends_on, google_sql_database_instance.default]
}

Expand Down

0 comments on commit 923cd11

Please sign in to comment.