aws-actions / aws-cloudformation-github-deploy

Deploys AWS CloudFormation Stacks
MIT License
251 stars 121 forks source link

Stack is in ROLLBACK_COMPLETE state and can not be updated #107

Open 0xAJX opened 1 year ago

0xAJX commented 1 year ago

Can a solution be implemented so that when this error happens, the stack is deleted and recreated?

Hanskrogh commented 9 months ago

Any updates on this?

SanariSan commented 9 months ago

When a stack is in ROLLBACK_COMPLETE, you can actually fix it by manually updating to the last successful template through the AWS console. Although there was a suggestion about deleting and recreating the stack, AWS allows for a simpler approach by just rolling back to a stable version, which naturally avoids deletion since rollback handles that part.

Adding an auto-reset feature to the GitHub action for these situations could really simplify the process. Incorporating an option to auto-redeploy with the latest stable template when hitting certain conditions could make the whole process smoother.