I have an API (lambda+API Gateway) which sits in front of AWS batch and a step function. In my step function I store the job ID from a batch job. My step function closely resembles that of the Job Status Poller example in AWS whereby the step function polls the batch job.
My problem is that I want to do a query on the Step-Function for the BatchJob Id. This is problematic when the step function is in the wait state as this element doesn't have any output.
Is there anyway to output data in the wait state like this ? Or do I need to use a different way of querying the step function?