[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-dynamodb-streams-appsync-subscription":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":30,"level":31,"meta":32,"patternArch":33,"resources":53,"s3URL":6,"services":6,"stem":60,"testing":61,"videoId":6,"__hash__":64},"patterns\u002Fpatterns\u002Fdynamodb-streams-appsync-subscription.json","Amazon DynamoDB streams to AWS AppSync subscription",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Falexis-philippart-de-foy.json",{"text":13},[14],"sam deploy","Listen to DynamoDB changes using AppSync subscriptions","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fdynamodb-streams-appsync-subscription","serverless-patterns\u002Fdynamodb-streams-appsync-subscription","dynamodb-streams-appsync-subscription","template.yaml",{"headline":25,"text":26},"How it works",[27,28,29],"In some of your projects, you might want to be able to listen to changes made on your database that are not performed through client-side mutations.","This sample project creates an AppSync API allowing you to listen to new items being created on a specific DynamoDB table through AWS AppSync subscriptions.","With this pattern, a Lambda function will be invoked for every new item created on a DynamoDB table. It will in turn call an AppSync mutation with data source set as `None`. An AppSync subscription will be subscribed to that mutation allowing end users to be notified of a newly created DynamoDB item.","TypeScript","300",{},{"icon1":34,"icon2":39,"icon3":42,"line1":46,"line2":50},{"x":35,"y":36,"service":37,"label":38},20,50,"dynamodb","Amazon DynamoDB",{"x":36,"y":36,"service":40,"label":41},"lambda","AWS Lambda",{"x":43,"y":36,"service":44,"label":45},80,"appsync","AWS AppSync",{"from":47,"to":48,"label":49},"icon1","icon2","New Item",{"from":48,"to":51,"label":52},"icon3","",{"bullets":54},[55,57],{"text":45,"link":56},"https:\u002F\u002Faws.amazon.com\u002Fappsync\u002F",{"text":58,"link":59},"AWS re:Post - Listen to external DB changes using AppSync","https:\u002F\u002Frepost.aws\u002Fknowledge-center\u002Fappsync-notify-subscribers-real-time","patterns\u002Fdynamodb-streams-appsync-subscription",{"text":62},[63],"See the GitHub repo for detailed testing instructions.","mwCSpM_z7eGr2mPSBfgMAZ7Iy7yroJUYwpe6QLmkZt8",1780050907046]