AWS Step Functions wait for task token using Terraform

AWS Step Functions → Amazon SQS → AWS Lambda

Create a Step Functions workflow that waits for a call back using a task token to complete a task

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.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/sfn-tasktoken-lambda

Deploy

terraform initterraform apply


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

terraform destroy
terraform show

Created by:

Archana V

Archana V

Solutions Architect at AWS

Follow on LinkedIn