Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toolkit: stacks can get stuck in ROLLBACK_COMPLETE #901

Closed
rix0rrr opened this issue Oct 11, 2018 · 2 comments · Fixed by #917
Closed

toolkit: stacks can get stuck in ROLLBACK_COMPLETE #901

rix0rrr opened this issue Oct 11, 2018 · 2 comments · Fixed by #917
Labels
bug This issue is a bug.

Comments

@rix0rrr
Copy link
Contributor

rix0rrr commented Oct 11, 2018

If the first deploy of a stack fails, the stack gets stuck in ROLLBACK_COMPLETE and requires out-of-band user intervention to delete it and try again:

$ cdk -a 'node integ.autoscaling.js' deploy
 ⏳  Starting deployment of stack aws-cdk-dynamodb...
 ❌  Deployment of stack aws-cdk-dynamodb failed: ValidationError: Stack:arn:aws:cloudformation:us-east-1:993655754359:stack/aws-cdk-dynamodb/540d7d70-cd53-11e8-b11c-50d5cd265c36 is in ROLLBACK_COMPLETE state and can not be updated.
Stack:arn:aws:cloudformation:us-east-1:993655754359:stack/aws-cdk-dynamodb/540d7d70-cd53-11e8-b11c-50d5cd265c36 is in ROLLBACK_COMPLETE state and can not be updated.

This didn't use to happen because we created an empty stack and updated from there: rollback would update back to a safe point from which we could try to deploy again. But right now, you have to use the AWS CLI to delete the stack, wait for that, and only THEN can you try using the CDK again.

Pretty bad experience for first-time users who are almost guaranteed to get things wrong on the first try, and then get stuck in a position from which it's not obvious how to recover from.

@rix0rrr rix0rrr added the bug This issue is a bug. label Oct 11, 2018
@eladb
Copy link
Contributor

eladb commented Oct 11, 2018 via email

@leandropadua
Copy link

I'm experiencing this issue in version 1.38.0:

❌  SampleApp-testingleandro-PipelineStack failed: Error: The stack named SampleApp-testingleandro-PipelineStack failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE
--

What is the default behaviour? Is there a way to force the deletion of existent stuck stacks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants