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.

Share:
10,214
red888
Author by

red888

Updated on August 21, 2022

Comments

  • red888
    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
    red888 almost 6 years
    yeah 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
    Asdfg almost 6 years
    There is no force switch kind of a thing but if you are using CLI then try to delete the stack and then create it.
  • red888
    red888 almost 6 years
    thats what i do now. just wasn't sure if this was really the only way- i guess so :(
  • Kevin Beal
    Kevin Beal about 3 years
    Unknown options: --on-failure