
A workflow that uses DynamoDB to implement idempotency
IN_PROGRESS.SUCCESS (or FAILED in case of an error).IN_PROGRESS) the workflow retrieves the idempotency record from the database. When the status is SUCCESS and there is a result the result is returned as output of the workflow. If the status is IN_PROGRESS the workflow continues to query the database every 10 seconds until the status changes to either SUCCESS and it continues as described above, or FAILED, in which case the workflow tries to acquire the semaphore again.git clone https://github.com/aws-samples/step-functions-workflows-collection/tree/main/idempotent-workflow-sam/cd step-functions-workflows-collection/idempotent-workflow-sam
sam build --use-containersam deploy --guided
sam delete.