degica / barcelona

PaaS built on top of AWS
MIT License
52 stars 6 forks source link

Recreate stack instead of erroring #797

Closed davidsiaw closed 12 months ago

davidsiaw commented 1 year ago

Barcelona so far has simply thrown errors if it encounters a stack in ROLLBACK_COMPLETE since it is a dead state. However, this means by re-running deployment, the same error comes up again and again ad infinitum. A developer needs to go into AWS to delete the stack.

This is toil.

This PR attempts to eliminate this toil by automatically deleting rollbacked stacks and re-creating them, allowing devs to simply re-run the deploy again and be able to expect a positive result.

degikko commented 12 months ago

@matafc can you help us review this PR, please?

davidsiaw commented 12 months ago

Really just trying to resolve some pain that devs are going through in the meantime