freckle / stackctl

Manage CloudFormation Stacks through specifications
MIT License
14 stars 1 forks source link

Fixups around auto-deleting first-run-failed Stacks #37

Closed pbrisbin closed 1 year ago

pbrisbin commented 1 year ago

Output "Deleting Stack" immediately

26b006c

Otherwise, things can appear hung.

Remove extra message metadata

23018cf

The calling function already adds the stackName via withThreadContext, so this was redundant.

Offer to delete ROLLBACK_FAILED Stacks too

e4ec828

There's no reason not to try the auto-delete for this status too, but we do show another warning about permissions, since ROLLBACK_FAILED usually indicates the user didn't have enough permissions to remove so-far-created resources -- and they're likely to be that same user now, and still lack those permissions.