[{"data":1,"prerenderedAt":69},["ShallowReactive",2],{"pattern-cognito-lambda-dynamodb":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":31,"level":32,"meta":33,"patternArch":34,"resources":53,"s3URL":6,"services":6,"stem":64,"testing":65,"videoId":6,"__hash__":68},"patterns\u002Fpatterns\u002Fcognito-lambda-dynamodb.json","Amazon Cognito to AWS Lambda to Amazon DynamoDB",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fvidit-shah.json",{"text":13},[14,15],"cdk synth","cdk deploy","Create a user in Amazon Cognito, handle a Post Confirmation trigger with AWS Lambda, and store user details in Amazon DynamoDB.","json","AWS CDK",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcognito-lambda-dynamodb","serverless-patterns\u002Fcognito-lambda-dynamodb","cognito-lambda-dynamodb\u002Fcdk","lib\u002Fcdk-stack.ts",{"headline":26,"text":27},"How it works",[28,29,30],"This sample project demonstrates how to create a user in an Amazon Cognito User Pool, then automatically insert that user's details into a DynamoDB table once the user confirms their email. The Post Confirmation Lambda trigger handles the event from Cognito and uses the AWS SDK for JavaScript (v3) to write user data to the DynamoDB table.","Key attributes such as the user's unique ID (sub), email, and optional custom attributes are passed to Lambda, which then processes and persists this data. The table is configured in on-demand capacity mode (Pay Per Request) for cost efficiency and minimal management overhead.","This pattern deploys a Cognito User Pool, a User Pool Client, a DynamoDB table, and a Node.js AWS Lambda function as the trigger.","TypeScript","200",{},{"icon1":35,"icon2":40,"icon3":43,"line1":47,"line2":51},{"x":36,"y":37,"service":38,"label":39},20,50,"cognito","Amazon Cognito",{"x":37,"y":37,"service":41,"label":42},"lambda","AWS Lambda",{"x":44,"y":37,"service":45,"label":46},80,"dynamodb","Amazon DynamoDB",{"from":48,"to":49,"label":50},"icon1","icon2","",{"from":49,"to":52,"label":50},"icon3",{"bullets":54},[55,58,61],{"text":56,"link":57},"Amazon Cognito - User sign-up\u002Fsign-in with triggers","https:\u002F\u002Faws.amazon.com\u002Fcognito\u002F",{"text":59,"link":60},"AWS Lambda - Serverless compute for triggered actions","https:\u002F\u002Faws.amazon.com\u002Flambda\u002F",{"text":62,"link":63},"Amazon DynamoDB - Fast and flexible NoSQL database","https:\u002F\u002Faws.amazon.com\u002Fdynamodb\u002F","patterns\u002Fcognito-lambda-dynamodb",{"text":66},[67],"See the GitHub repo for end-to-end tests using Jest and manual sign-up steps.","6DS2CbOjShdj56USN0X7omnimdOdd2fBaGQ49JVvUi4",1778846883968]