3 Answers
- Newest
- Most votes
- Most comments
3
Hi,
You have a fully detailled solution here: https://medium.com/@xargsuk/cognito-hygiene-an-automated-solution-to-unconfirmed-users-dc74fd352c10
The author of this article also provides the code at https://github.com/XargsUK/cognito-clean
Best,
Didier
2
- Use AWS Step function to ListUsers with a status 'Status': 'UNCONFIRMED'
- Then issue DeleteUser on each user
Run step function on an EventBridge Schedule
1
hey,, To remove unconfirmed users from Amazon Cognito without using Lambda or Amplify, you can:
- Use AWS Step Functions: Create a Step Function that lists all unconfirmed users.
- Delete Unconfirmed Users: After listing, use the DeleteUser command for each unconfirmed user.
- Schedule the Task: Run this Step Function every 24 hours using Amazon EventBridge to trigger it on a schedule.
- This approach automates the process without requiring Lambda or Amplify.
For detailed guidance, check this helpful resource: https://medium.com/@xargsuk/cognito-hygiene-an-automated-solution-to-unconfirmed-users-dc74fd352c10
Relevant content
asked 2 years ago
asked 4 years ago
- AWS OFFICIALUpdated 3 months ago
