I have a step function workflow that needs to trigger the following sequence: Lambda1 → AnotherStep → Lambda2. If everything goes well, I want to update the status in the database at the end. If any failure occurs, I need to update the status in the database to ‘error,’ including the payload
I tried to use Choice feature after each task to check whether job status failed or not and created this complex diagram.
I am sure there will be easy way to implement this but I am not sure how. Thanks in advance.