So I am working on a web application in which I am performing signup by taking users data from web form and passing it on to a lambda function which stores it in a DynamoDB table. But now I also want to utilize the AWS Cognito authentication service. So the data I am storing in the DynamoDB also consists of the email address field.I want my application to perform the following flow of steps:
- User Signups data including email address stored in DynamoDB via a lambda function.
- Once data is stored in DynamoDB I want some sort of trigger which can take registered users email address from the DynamoDB and passes it AWS Cognito.
- AWS Cognito creates a user account sends user a random password or a link where the user can set the password themselves.
The Signup and storing data onto DynamoDB is working for me but the part where synchronization needs to happen is confusing me. It would be highly appreciated if someone can guide me a bit here.