Skip to content

Commit

Permalink
DEV: Disable updates to guest and admin password during terraform pat…
Browse files Browse the repository at this point in the history
…ching
  • Loading branch information
NickEdwards7502 committed Nov 27, 2024
1 parent 7d8ab85 commit 5205051
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cognito/cognito.tf
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ resource "aws_cognito_user" "guest" {
given_name = "Guest"
family_name = "Guest"
}

lifecycle {
ignore_changes = [
password
]
}
}

resource "aws_cognito_user" "admin" {
Expand All @@ -174,6 +180,12 @@ resource "aws_cognito_user" "admin" {
email = var.gaspi-admin-username
email_verified = true
}

lifecycle {
ignore_changes = [
password
]
}
}

#
Expand Down

0 comments on commit 5205051

Please sign in to comment.