[{"data":1,"prerenderedAt":53},["ShallowReactive",2],{"workflow-activity-state-machine-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":33,"meta":34,"resources":35,"s3URL":41,"services":42,"simplicity":44,"stem":45,"testing":46,"type":50,"usecase":51,"videoId":28,"__hash__":52},"workflows\u002Fworkflows\u002Factivity-state-machine-tf.json","Activity State Machine",{"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 activity worker to complete it's task","\u002Fassets\u002Fimages\u002Fworkflows\u002Factivity-state-machine-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\u002Factivity-state-machine-tf\u002F","activity-state-machine-tf","main.tf","statemachines\u002Fstatemachine.asl.json",[27],{"headline":28,"payloadURL":28},"",{"headline":5,"text":30},[31,32],"This application creates a State Machine with Activity state that enables you to implement a worker hosted anywhere. An activity worker can be an application running on EC2 instance\u002F AWS Lambda or a mobile device application that can make HTTP connection.","The example workflow runs an activity task state which waits for activity worker running on AWS Lambda. When State Machine workflow reaches activity task state, it pauses in In progress status and waits for activity worker to poll for a task. Once the function polls for activity task, the workflow then waits for the time configured in TimeoutSeconds to allow worker complete and report success\u002Ffailure.","100",{},{"headline":36,"bullets":37},"Additional resources",[38],{"text":39,"link":40},"The AWS Step Functions Workshop","https:\u002F\u002Fcatalog.workshops.aws\u002Fstepfunctions\u002Fen-US",null,[43],"lambda","1 - Fundamental","workflows\u002Factivity-state-machine-tf",{"headline":47,"text":48},"Testing",[49],"See the GitHub repo for detailed testing instructions.","Standard","Automation","AO3m9CSxha7uw1yBN3DP0rGKUH3ocO5ai0wcR3gyRoE",1778846888720]