Cognito User Attributes Modified Lambda Trigger

2

I was planning on synchronizing my user pool attributes with my DynamoDB table, such as name and email. Unfortunately, I can't find a way to do this from Cognito's side. Would be nice if this existed, as I can avoid having to create my own API just to handle such a simple case of details update.

Is such a thing on Cognito's roadmap? Or is there any other option I could use that do not require constant data retrieval and matching?

질문됨 2년 전355회 조회
1개 답변
0

You can add a pre token generation lambda. All the attributes defined in user pool would be available in event object. A call can be made to dynamodb to update any details available as attributes.

답변함 일 년 전
  • Yeah, I was trying to avoid that, as it seems excessive. As I have no other alternative, I am doing that and matching a timestamp between to find out if I should update it or not.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인