[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-sfn-tasktoken-lambda":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":30,"level":31,"meta":32,"patternArch":33,"resources":52,"s3URL":6,"services":6,"stem":60,"testing":61,"videoId":6,"__hash__":64},"patterns\u002Fpatterns\u002Fsfn-tasktoken-lambda.json","AWS Step Functions wait for task token using Terraform",null,{"text":8},[9,10],"terraform destroy","terraform show",[12],"content\u002Fcontributors\u002Farchana-v.json",{"text":14},[15,16],"terraform init","terraform apply","Create a Step Functions workflow that waits for a call back using a task token to complete a task","json","Terraform",{"template":21},{"repoURL":22,"templateURL":23,"projectFolder":24,"templateFile":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsfn-tasktoken-lambda","serverless-patterns\u002Fsfn-tasktoken-lambda","sfn-tasktoken-lambda","main.tf",{"headline":27,"text":28},"How it works",[29],"The Step Functions workflow initiates a task and then waits for an external callback using a task token. The token is sent to an external service, such as an SQS queue, which triggers a Lambda function. The Lambda function processes the task and then uses the token to signal completion back to the Step Functions workflow, allowing it to proceed to the next step. This mechanism enables asynchronous processing and integration with external systems. This can be used in asynchrounous workflows, manual approval process etc.","Python","200",{},{"icon1":34,"icon2":39,"icon3":42,"line1":46,"line2":50},{"x":35,"y":36,"service":37,"label":38},20,50,"sfn","AWS Step Functions",{"x":36,"y":36,"service":40,"label":41},"sqs","Amazon SQS",{"x":43,"y":36,"service":44,"label":45},80,"lambda","AWS Lambda",{"from":47,"to":48,"label":49},"icon1","icon2","",{"from":48,"to":51,"label":49},"icon3",{"bullets":53},[54,57],{"text":55,"link":56},"Callback Pattern Example (Amazon SQS, Amazon SNS, Lambda)","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fcallback-task-sample-sqs.html",{"text":58,"link":59},"Service integration patterns","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconnect-to-resource.html","patterns\u002Fsfn-tasktoken-lambda",{"text":62},[63],"See the GitHub repo for detailed testing instructions.","Cb2RWWDCE0fzavVkop1ngZWdA1118BZGV_5M4xXC7Og",1779273339432]