I am using the amplify framework from AWS to build a webapp in Vue.js.
As for now, I am using the cognito service to authenticate users.
I want to trigger a lambda function when the user first create his account. I already created a lambda function using the following command:
amplify function add
I tested my function using this command:
amplify function invoke myLambdaFunction
And now I want to trigger this function when an user create an account.
Any idea how can I do that ?
Thank you, Alexis
You can do it with the cli:
% amplify auth update
What do you want to do? Walkthrough all the auth configurations
...
? Do you want to configure Lambda Triggers for Cognito? Yes
? Which triggers do you want to enable for Cognito Pre Sign-up
? What functionality do you want to use for Pre Sign-up
Do you want to edit your custom function now? Yes
Then you can add your logic in this newly generated function
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With