- Newest
- Most votes
- Most comments
When you delete an Amazon Cognito user pool, Amazon Cognito retains it in an inactive state for 14 days before beginning the cleanup process. If you've recently deleted your user pool (within the last 14 days), you can contact AWS Support to request restoration assistance.
If it's been less than 14 days since deletion, this is your best option for recovery as Amazon Cognito specifically maintains deleted pools during this period to help with accidental deletions.
If recovery isn't possible or you prefer to create a new user pool for your development environment, you'll need to:
- Create a new user pool through the Amplify CLI or AWS Console
- Configure it with the same settings as your previous pool
- Update your local application configuration to point to this new user pool
For Amplify projects specifically, you may need to run amplify add auth to create a new authentication resource and then amplify push to provision it. This will generate a new user pool that you can use for your local development environment.
Remember that for future user pools, you can activate deletion protection to prevent accidental deletions. This feature requires you to explicitly deactivate protection before a user pool can be deleted.
Sources
DeleteUserPool - Amazon Cognito User Pools
User pool deletion protection - Amazon Cognito
Relevant content
asked 2 years ago
