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.