[{"data":1,"prerenderedAt":53},["ShallowReactive",2],{"workflow-dynamodb-migrations":3},{"id":4,"title":5,"cleanup":6,"contributors":10,"deploy":12,"description":15,"diagram":16,"extension":17,"framework":18,"gitHub":19,"introBox":28,"level":32,"meta":33,"resources":34,"s3URL":40,"services":41,"simplicity":44,"stem":45,"testing":46,"type":50,"usecase":51,"videoId":27,"__hash__":52},"workflows\u002Fworkflows\u002Fdynamodb-migrations.json","Amazon DynamoDB migration",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Feric-johnson.json",{"text":13},[14],"sam deploy --guided","Loops through an Amazon DynamoDB table to update each record","\u002Fassets\u002Fimages\u002Fworkflows\u002Fdynamodb-migrations.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\u002Fdynamodb-migrations\u002F","synchronous-job","template.yaml","statemachine\u002Fstatemachine.asl.json",[26],{"headline":27,"payloadURL":27},"",{"headline":29,"text":30},"How it works",[31],"This workflow first creates a backup of the database. Then it iterates through each record in the database. The workflow manages the pagination to ensure the entire database is handled. Currently it pulls records in groups of 50. The migration logic is handled in the `src\u002Fapp.py` Lambda function. Update this function to make any migrations you need.","200",{},{"headline":35,"bullets":36},"Additional resources",[37],{"text":38,"link":39},"The AWS Step Functions Workshop","https:\u002F\u002Fcatalog.workshops.aws\u002Fstepfunctions\u002Fen-US","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fworkflows\u002Fdynamodb-migrations\u002Fcloudformation.yml",[42,43],"dynamodb","lambda","2 - Pattern","workflows\u002Fdynamodb-migrations",{"headline":47,"text":48},"Testing",[49],"See the GitHub repo for detailed testing instructions.","Express","Data Processing","80IcZ5wS5bZkpiJtYmyQyhUTKfgMZFugWJL6SGMn25w",1779446122222]