AWS Step Functions: how to implement semaphores for state machines
theburningmonk.com