[{"data":1,"prerenderedAt":57},["ShallowReactive",2],{"workflow-human-in-the-loop-tf":3},{"id":4,"title":5,"cleanup":6,"contributors":10,"deploy":12,"description":16,"diagram":17,"extension":18,"framework":19,"gitHub":20,"introBox":29,"level":36,"meta":37,"resources":38,"s3URL":44,"services":45,"simplicity":48,"stem":49,"testing":50,"type":54,"usecase":55,"videoId":28,"__hash__":56},"workflows\u002Fworkflows\u002Fhuman-in-the-loop-tf.json","Human in the Loop",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>terraform destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fahmad-aboushady.json",{"text":13},[14,15],"terraform init","terraform apply","Wait for an approval from a human reviewer before continuing","\u002Fassets\u002Fimages\u002Fworkflows\u002Fhuman-in-the-loop-tf.png","json","Terraform",{"template":21,"payloads":26},{"repoURL":22,"templateDir":23,"templateFile":24,"ASL":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002Ftree\u002Fmain\u002Fhuman-in-the-loop-tf\u002F","human-in-the-loop","main.tf","statemachines\u002Fstatemachine.asl.json",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31},"How it works",[32,33,34,35],"This pattern allows you to integrate an human review or approval process into your workflows.","The task sends a message to a SNS topic which sends a notification to a human reviewer or approver by email for example. The workflow then waits until the approver completes their review. Depending on the review outcome a different Lambda function can be invoked.","Waiting for completion of the review is done using the .waitForTaskToken service integration. The payload of the SNS message contains a task token, which is automatically generated by AWS Step Functions.","The task will pause until it receives that task token back with a SendTaskSuccess or SendTaskFailure API call.","100",{},{"headline":39,"bullets":40},"Additional resources",[41],{"text":42,"link":43},"The AWS Step Functions Workshop","https:\u002F\u002Fcatalog.workshops.aws\u002Fstepfunctions\u002Fen-US",null,[46,47],"sns","lambda","2 - Pattern","workflows\u002Fhuman-in-the-loop-tf",{"headline":51,"text":52},"Testing",[53],"See the GitHub repo for detailed testing instructions.","Standard","Content Moderation","UTJ029dMXE6jtGyDI3ClZPrDkooONrM0PtIq099ZDG8",1778846889177]