Skip to content

Destroying a freshly deployed cluster stack fails because Tasks are still active #39

@tillrohrmann

Description

@tillrohrmann

When trying to destroy a freshly deployed cluster stack, cdk fails with

byoc-demo-cluster-till: destroying... [2/2]
4:56:33 PM | DELETE_IN_PROGRESS   | AWS::EC2::Subnet                          | vpc/PrivateSubnet3/Subnet
4:56:33 PM | DELETE_IN_PROGRESS   | AWS::EC2::Subnet                          | vpc/PrivateSubnet1/Subnet
4:56:33 PM | DELETE_IN_PROGRESS   | AWS::EC2::Subnet                          | vpc/PrivateSubnet2/Subnet
4:56:33 PM | DELETE_IN_PROGRESS   | AWS::EC2::SecurityGroup                   | restate-byoc/security-group
4:56:34 PM | DELETE_FAILED        | AWS::ECS::Cluster                         | restate-byoc/cluster
Resource handler returned message: "Error occurred during operation 'DeleteClusters SDK Error: The Cluster cannot be deleted while Tasks are active. (Service: AmazonECS; Status C
ode: 400; Error Code: ClusterContainsTasksException; Request ID: fd8dc0bb-5f3c-4c3e-961b-ae11c644ece5; Proxy: null)'." (RequestToken: ad9ab3e8-b3d1-3ac7-7931-bdb1602b1500, Handle
rErrorCode: GeneralServiceException)

Is this the intended behavior or should I be able to destroy a byoc stack? If it's the intendend behavior, how would I destroy the stack then?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions