Saw this question on reddit and believe it should be brought over to stack overflow after having the same issue (https://www.reddit.com/r/aws/comments/bzvhu3/cognito_post_confirmation_being_triggered/)
For some reason, even though "triggerSource"
is "PostConfirmation_ConfirmSignUp"
both times for my cognito user pool sign up, it's getting run twice as seen in CloudWatch
logs. The second time fails because the user has already been in the database, what is the issue?