[{"data":1,"prerenderedAt":56},["ShallowReactive",2],{"workflow-transfer-data-records":3},{"id":4,"title":5,"cleanup":6,"contributors":10,"deploy":12,"description":15,"diagram":16,"extension":17,"framework":18,"gitHub":19,"introBox":28,"level":38,"meta":39,"resources":40,"s3URL":43,"services":44,"simplicity":47,"stem":48,"testing":49,"type":53,"usecase":54,"videoId":27,"__hash__":55},"workflows\u002Fworkflows\u002Ftransfer-data-records.json","Transfer Data Records",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fmohamed-salah.json",{"text":13},[14],"sam deploy","This sample project demonstrates how to read values from an Amazon DynamoDB table and send them to Amazon SQS using AWS Step Functions","\u002Fassets\u002Fimages\u002Fworkflows\u002Ftransfer-data-records.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\u002Ftransfer-data-records\u002F","transfer-data-records","template.yml","statemachine\u002Fstatemachine.asl.json",[26],{"headline":27,"payloadURL":27},"",{"headline":29,"text":30},"How it works",[31,32,33,34,35,36,37],"In this project, Step Functions uses the Lambda function to populate the DynamoDB table, uses a for loop to read each of the entries, and then sends each entry to Amazon SQS.","\u003Cli>\u003Cstrong>Seed the DynamoDB Table:\u003C\u002Fstrong> Lambda function adds 10 new items to a DynamoDB table and returns a list of generated message IDs.\u003C\u002Fli>","\u003Cli>\u003Cstrong>For Loop Condition:\u003C\u002Fstrong>  Choice state checks if the first element returned by the previous state is DONE. If yes, the execution ends at Succeed state. If not, it proceeds to the next state.\u003C\u002Fli>","\u003Cli>\u003Cstrong>Read Next Message from DynamoDB:\u003C\u002Fstrong>  Task state retrieves message data from DynamoDB using message ID.\u003C\u002Fli>","\u003Cli>\u003Cstrong>Send Message to SQS:\u003C\u002Fstrong>  Task state sends message data to an SQS queue.\u003C\u002Fli>","\u003Cli>\u003Cstrong>Pop Element from List:\u003C\u002Fstrong>  Pass state removes the first element returned by Seed the DynamoDB Table state and returns the updated array.\u003C\u002Fli>","\u003Cli>\u003Cstrong>Succeed:\u003C\u002Fstrong> Terminal state that ends the execution of the state machine.\u003C\u002Fli>","200",{},{"headline":41,"bullets":42},"Additional resources",[],null,[45,46],"lambda","sfn","1 - Fundamental","workflows\u002Ftransfer-data-records",{"headline":50,"text":51},"Testing",[52],"See the GitHub repo for detailed testing instructions.","Standard","Data Transfer","exYhmicV6weOygpP85YnS3Aeu4EbLX0t72FyhXlu3jc",1782124512126]