An error occurred (ValidationError) when calling the CreateChangeSet operation ..... is in ROLLBACK_COMPLETE state and can not be updated
10,214
Solution 1
Not sure how you are creating CFT stack but if you are using CLI, you can specify --on-failure DELETE
option which will delete the stack if the deployment fails.
Solution 2
This has happened once in a Buildkite pipeline, and after manually deleting the stack (Status: DELETE_COMPLETE) was able to re-create/update via the pipeline.
Author by
red888
Updated on August 21, 2022Comments
-
red888 over 1 year
I understand why AWS leaves a stack if a deploy fails so you can see the error.
But is there a force switch so i can redeploy and have aws delete the stack for me? Otherwise I have to delete it myself.
-
red888 almost 6 yearsyeah but like i said it remains so you can look at the error. Id prefer a force switch that deletes it because then I can choose to look at the error if i want or just re-run the command
-
Asdfg almost 6 yearsThere is no
force
switch kind of a thing but if you are using CLI then try todelete
the stack and thencreate
it. -
red888 almost 6 yearsthats what i do now. just wasn't sure if this was really the only way- i guess so :(
-
Kevin Beal about 3 years
Unknown options: --on-failure