Suggestion or question. Is there a lambda trigger for a user being deleted or an expired unverified sign up in a cognito user pool?

0

Seems like adding that would make setting up resources for a new user using triggers feel safer, since you can tear them down after. One use case I have is to start generating resources while waiting for email verification, then if they don't validate in the time frame, tear them down when cognito calls.

1 Answer
0

Deleting a user would generate an AdminDeleteUser log in AWS CloudTrail, which could then be read by Amazon EventBridge. See Accessing AWS Service Events via AWS CloudTrail.

You could then trigger a Lambda for your clean up based on that EventBridge event.

AWS
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions