Skip to content

Toolkit: stack update failure should show StackStatusReason #604

Closed

Description

@mipearson

Deleting the stack vpc-demo which exports a vpc reference currently used by other stacks fails with no message other than UPDATE_COMPLETE:

 ⏳  Starting destruction of stack vpc-demo...
 ❌  Destruction failed: vpc-demo Error: Failed to destroy vpc-demo (current state: UPDATE_COMPLETE)!
    at Object.destroyStack (/Users/mp/.nvm/versions/node/v10.7.0/lib/node_modules/aws-cdk/lib/api/deploy-stack.ts:152:15)
    at process._tickCallback (internal/process/next_tick.js:68:7)
Failed to destroy vpc-demo (current state: UPDATE_COMPLETE)!

I would expect at best it to tell me which stacks are using its outputs or at worst the fact that it can't be deleted because of that.

Looking at the output of list-stacks via the AWS CLI shows that this error is present and should be returned to the user:

            "StackStatus": "UPDATE_COMPLETE",
            "StackStatusReason": "Export vpc-demo:DemoVPCPublicSubnetIDs0C2D9BEE cannot be deleted as it is in use by cdk-vpc-to-cfn-elb-demo and elb-cfn-demo"
        },

Activity

  1. changed the title [-]Deletion of stack that other stack depends on does not provide useful diagnostics[/-] [+]Toolkit: stack update failure should show StackStatusReason[/+] on Aug 20, 2018
  2. rix0rrr commented on Aug 20, 2018

    @rix0rrr
    Contributor

    Good call.

  3. added
    good first issue
    on Aug 20, 2018
  4. added a commit that references this issue on Aug 20, 2018
    2ae3035
  5. added a commit that references this issue on Aug 22, 2018
    128d55d
  6. added a commit that references this issue on Jul 29, 2026
    cafa288
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions