[{"data":1,"prerenderedAt":53},["ShallowReactive",2],{"workflow-dynamically-process-data-with-map-state":3},{"id":4,"title":5,"cleanup":6,"contributors":10,"deploy":12,"description":15,"diagram":16,"extension":17,"framework":18,"gitHub":19,"introBox":28,"level":33,"meta":34,"resources":35,"s3URL":38,"services":39,"simplicity":44,"stem":45,"testing":46,"type":50,"usecase":51,"videoId":27,"__hash__":52},"workflows\u002Fworkflows\u002Fdynamically-process-data-with-map-state.json","Dynamically process data with a Map state",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fzainab-allawi.json",{"text":13},[14],"sam deploy --guided","This workflow demonstrates dynamic parallelism using a Map state.","\u002Fassets\u002Fimages\u002Fworkflows\u002Fdynamically-process-data-with-map-state.png","json","AWS SAM",{"template":20,"payloads":25},{"repoURL":21,"templateDir":22,"templateFile":23,"ASL":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002Ftree\u002Fmain\u002Fdynamically-process-data-with-map-state\u002F","dynamically-process-data-with-map-state","template.yaml","statemachine\u002Fstatemachine.asl.json",[26],{"headline":27,"payloadURL":27},"",{"headline":29,"text":30},"How it works",[31,32],"In this pattern, Step Functions uses an AWS Lambda function to pull messages off an Amazon SQS queue, and passes a JSON array of those message to a Map state.","For each message in the queue, the state machine writes the message to DynamoDB, invokes the other Lambda function to remove the message from Amazon SQS, and then publishes the message to the Amazon SNS topic.","100",{},{"headline":36,"bullets":37},"Additional resources",[],null,[40,41,42,43],"sns","sqs","dynamodb","lambda","1 - Fundamental","workflows\u002Fdynamically-process-data-with-map-state",{"headline":47,"text":48},"Testing",[49],"See the GitHub repo for detailed testing instructions.","Standard","Data Processing","FuNgC17l8ylTvMb1MG5xXLAP-JG2Do-f3oiIcN4fTIY",1778846889047]