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

cloudknot clean cli #136

Open
arokem opened this issue Feb 6, 2018 · 5 comments
Open

cloudknot clean cli #136

arokem opened this issue Feb 6, 2018 · 5 comments
Milestone

Comments

@arokem
Copy link
Member

arokem commented Feb 6, 2018

If you run this enough times, and are not sufficiently diligent about clobbering resources from failed attempts, you might end up with a rather large cloudknot configuration file (and a lot of dangling resources on AWS?). Might be nice to have a CLI that allows you to clean up everything, after all the knots are no longer existing.

@arokem
Copy link
Member Author

arokem commented Feb 6, 2018

It just occurred to me that you can 'revive' dangling knots by referring to them by name, so maybe this is not neccessary.

@richford
Copy link
Member

richford commented Feb 6, 2018

Could possibly be merged with #8. If possible, I'd like to hold off on this and #8 until after #125. I think the way we use the config file will change dramatically after switching over to cloud formation.

Having said that, I don't think I'll get to #125 for a while. I think it's low priority for me with the other stuff on my plate. Let me know if you think differently and I can redirect.

@arokem
Copy link
Member Author

arokem commented Feb 9, 2018

No hurry on this. I think that reviving these dangling resources by reference to their name covers this for now. We can revisit once #125 is addressed, but again -- no hurry!

@richford richford added this to the v0.3 milestone Jun 14, 2018
@richford richford modified the milestones: v0.3, v0.4 Jul 18, 2018
@richford richford modified the milestones: v0.4, v0.5.0 Jul 21, 2020
@richford
Copy link
Member

richford commented Sep 4, 2020

Once we merge #250, I think we could write the CLI for this. The CLI should prune the config file, but also have an interactive part to remove resources on AWS. Once we prune the config file to refer only to existing resources, we can then iterate through the config resources and ask the user if they want to keep them on AWS using [y, n, q] input on the command line.

@arokem
Copy link
Member Author

arokem commented Sep 9, 2020

Yes - a CLI that asks you whether or not to nuke unused resources without having to go into the console would be awesome.

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

No branches or pull requests

2 participants