问题
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