Search code examples
amazon-web-servicesaws-step-functions

Is it possible to revert a deleting status on a step function machine


My TI partner accidentally delete an step function machine and it stuck in deleting status because of the executions that are active, the question is if is it possible to revert the delete, maybe with aws customer support or any other way.

I tried re deploy cdk stack edit from console


Solution

  • There is no way to cancel a delete.

    Luckily, it sounds like your State Machine definition is defined in CDK, which is good news. Once the executions finished and the State Machine deletes, you can redeploy it.

    For the future, I would suggest using least-privileged console roles that don't allow resources to be deleted.