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

Add ability to delete stacks #195

Closed
jwenz723 opened this issue Oct 16, 2023 · 3 comments
Closed

Add ability to delete stacks #195

jwenz723 opened this issue Oct 16, 2023 · 3 comments
Labels
feature A new feature request

Comments

@jwenz723
Copy link
Contributor

It would be nice if the spacectl cli offered a command to delete stacks. Something like spacectl stack delete --id my-stack-id.

I typically manage the creation/deletion of stacks using terraform. However, in my automated testing of my module which is used for stack provisioning I occasionally need to delete stacks manually which were created during automated testing due to failures that occur during a test. Today I have to go into the spacelift UI and manually click the delete button. It would be nice to be able to script this so that if my automated test fails then it can try to perform cli commands to clean up the failed stacks.

@tomasmik
Copy link
Contributor

tomasmik commented Nov 10, 2023

Spacectl isn't really made for creating, mutating or deleting resources such as stacks. While I understand the reasoning behind this request, I'm not sure if we'll implement it.

@tomasmik tomasmik added the feature A new feature request label Nov 10, 2023
@peterdeme
Copy link
Collaborator

peterdeme commented Nov 16, 2023

Perhaps a workaround for your problem would be adding a scheduled delete to your stack.

I agree with @tomasmik that mutating resources are usually avoided in spacectl.

@tomasmik
Copy link
Contributor

I feel like Peters suggestion there is sufficient and we will not implement any stack mutation in spacectl for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature request
Projects
None yet
Development

No branches or pull requests

3 participants