ETE
aws
deployment_error
ai_generated
true
Stack is in ROLLBACK_COMPLETE state and can not be updated
ID: aws/cloudformation-rollback-complete
90%Fix Rate
90%Confidence
50Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 2 | active | — | — | — |
Root Cause
CloudFormation stack failed creation and rolled back. Can't update — must delete and recreate.
genericWorkarounds
-
95% success Delete the failed stack and recreate: aws cloudformation delete-stack --stack-name X
aws cloudformation delete-stack --stack-name X
Sources: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html
-
92% success Check the Events tab to find why creation failed, then fix the template
aws cloudformation describe-stack-events --stack-name X | jq '.StackEvents[] | select(.ResourceStatus == "CREATE_FAILED")'
Sources: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html
-
82% success Use --on-failure DO_NOTHING to debug without rollback next time
Use --on-failure DO_NOTHING to debug without rollback next time
Sources: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-console-create-stack.html
Dead Ends
Common approaches that don't work:
-
Try to update the stack anyway
95% fail
AWS API rejects updates to ROLLBACK_COMPLETE stacks
-
Manually create the resources outside CloudFormation
70% fail
Resources drift from IaC — hard to manage
Error Chain
Frequently confused with: