ValidationError Stack:arn aws cloudformation stack is in ROLLBACK_COMPLETE state and can not be updated

僤鯓⒐⒋嵵緔 提交于 2020-07-14 05:28:30

问题


When I deploy using cloudformation aws cloudformation deploy --region $region --stack-name ABC

Got error:

An error occurred (ValidationError) when calling the CreateChangeSet operation: Stack:arn:aws:cloudformation:stack/service/7e1d8c70-d60f-11e9-9728-0a4501e4ce4c is in ROLLBACK_COMPLETE state and can not be updated.

Please help me !


回答1:


This happens when stack creation fails. The stack will remain in place with a status of ROLLBACK_COMPLETE (unless you've specified that it shouldn't be rolled back on failure, in which case the status will be CREATE_FAILED). You cannot update this stack; you will have to manually delete it and deploy it again.

If instead you were deploying updates to an existing (successfully created) stack, and the updates failed but were successfully rolled back, it will go back into its previous valid state, allowing you to reattempt updates.




回答2:


Run the following AWS CLI command to delete your stack

aws cloudformation delete-stack --stack-name <>

It may take less than a minute to delete your stack, and then try re-deploying it.



来源:https://stackoverflow.com/questions/57932734/validationerror-stackarn-aws-cloudformation-stack-is-in-rollback-complete-state

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!