From 5205051e1d21dde7760ab2157105836020ffc306 Mon Sep 17 00:00:00 2001 From: NickEdwards7502 Date: Wed, 27 Nov 2024 05:44:42 +0000 Subject: [PATCH] DEV: Disable updates to guest and admin password during terraform patching --- cognito/cognito.tf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cognito/cognito.tf b/cognito/cognito.tf index 141cccb..1e7fe2e 100644 --- a/cognito/cognito.tf +++ b/cognito/cognito.tf @@ -160,6 +160,12 @@ resource "aws_cognito_user" "guest" { given_name = "Guest" family_name = "Guest" } + + lifecycle { + ignore_changes = [ + password + ] + } } resource "aws_cognito_user" "admin" { @@ -174,6 +180,12 @@ resource "aws_cognito_user" "admin" { email = var.gaspi-admin-username email_verified = true } + + lifecycle { + ignore_changes = [ + password + ] + } } #