Skip to content

Commit

Permalink
Add prevent_destroy to Cognito UserPool (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
kin0992 authored Feb 8, 2024
1 parent 5561922 commit 44ab2b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .infrastructure/55_cognito.tf
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ module "cognito_verify_auth_challenge_function" {
}

resource "aws_cognito_user_pool" "devportal" {
lifecycle {
prevent_destroy = true
}

name = "devportalpool"
deletion_protection = "ACTIVE"

Expand Down

0 comments on commit 44ab2b6

Please sign in to comment.