question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to add a pre or post SignUp hook/trigger?

See original GitHub issue

** Which Category is your question related to? ** Auth / Functions

** What AWS Services are you utilizing? ** Cognito, Lambda, Amplify Console

** Provide additional details e.g. code snippets ** Once a user has signed up I’d like to execute a Function (Lambda) to modify their User Pool entry (in my case to set custom:tenant_id to a GUID). It isn’t clear to me how I would do this.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:22 (7 by maintainers)

github_iconTop GitHub Comments

19reactions
yuyokkcommented, Jan 30, 2020

Be nice to kick off any lambda function you want at points in the auth workflow. I would like to be able to kick off a Lambda after account verification that goes and adds some data into my DB. As far as I can tell that’s not possible.

Absolutely agree on this one!

Right now I’m struggling with amplify update auth to add Lambda Triggers. It asks all the questions again. I wish amplify update auth showed Add/Update lambda triggers on the top menu e.g.

$ amplify auth update

Using service: Cognito, provided by: awscloudformation
 What do you want to do? (Use arrow keys)
❯ Apply default configuration without Social Provider (Federation)
  Walkthrough all the auth configurations
  Add/Edit signin and signout redirect URIs
  Update OAuth social providers
  Add/Update lambda triggers                 // ***** something like this *****
  Create or update Cognito user pool groups
  Create or update Admin queries API
5reactions
hishamcommented, Jul 17, 2020

@mbecker when I added a trigger, I go through all the walkthrough questions then do a diff on the cloudformation files to double check what the walkthrough did and what my setup had before. Often times I have to revert some of the things the walkthrough did, especially if you modified parameters.json or the cloudformation files outside the walkthrough to get features the walkthrough does not support (e.g. user name case insensitivity)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pre User Registration Flow - Auth0
The Pre User Registration Flow runs before a user is added to a Database or Passwordless Connection. Diagram showing the Actions Pre User...
Read more >
How to setup and use REST hooks? - Zapier Community
This is set up via an initial registration with the origin API, typically a POST including authentication, data format, ...
Read more >
publish_post hook trigger twice when I publish post
I am trying to send email post content on post publish and written small function in functions.php but it ... Add this just...
Read more >
Trigger Jenkins Build and Test with Git post-commit hook
Post Commit Hook setup in Git to trigger a job in JenkinsTrigger a Maven Build and JUnit Test Run when changes are committed...
Read more >
GitHub hook trigger for GITScm polling - jenkins - Stack Overflow
I configured hooktrigger job with set of pre-defined steps 1. ... Sign up using Email and Password ... Post Your Answer Discard.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found